Coffeehouse Post

Single Post Permalink

View Thread: Sticky Language
  • User profile image

    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. 

    Imports Dbgr=System.Diagnostics.Debugger
    Private Sub ScheduledAgent_UnhandledException _ 
    ( sender As Object,
           e As ApplicationUnhandledExceptionEventArgs
      If Dbgr.IsAttached Then Dbgr.Break
    End Sub