@spivonious: I find that the increased text density makes it more difficult to parse.
Yeah, as clean as some VB might be, there is that text density issue. Just makes things harder to read I think...
Private Sub ScheduledAgent_UnhandledException(ByVal sender As Object, ByVal e As ApplicationUnhandledExceptionEventArgs) If System.Diagnostics.Debugger.IsAttached Then System.Diagnostics.Debugger.Break() End If End Sub
You could always use an import alias. The Explicit Line Continuation is needed in the following example, as its one of the place where Implicit Line Continuation leads to ambiguity. To separate the method parameters onto individual lines. Plus there is the single line IF Statement, and you don't need the brackets on the method call which takes no arguments. ByVal is the default so you don't them. If you turn off the pretty print mechanism you can also line them up.
Private Sub ScheduledAgent_UnhandledException _
( sender As Object,
e As ApplicationUnhandledExceptionEventArgs
If Dbgr.IsAttached Then Dbgr.Break
@spivonious: Not End as that just ends the program, but any of the following I'm fine with.
I think that's all of them.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.