default.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Import System
  2. Import System.IO
  3. #Const DEBUG = True
  4. Namespace Highlighter.Test
  5. ''' <summary>This is an example class.</summary>
  6. Public Class Program
  7. Protected Shared hello As Integer = 3
  8. Private Const ABC As Boolean = False
  9. #Region "Code"
  10. ' Cheers!
  11. <STAThread()> _
  12. Public Shared Sub Main(ByVal args() As String, ParamArray arr As Object) Handles Form1.Click
  13. On Error Resume Next
  14. If ABC Then
  15. While ABC : Console.WriteLine() : End While
  16. For i As Long = 0 To 1000 Step 123
  17. Try
  18. System.Windows.Forms.MessageBox.Show(CInt("1").ToString())
  19. Catch ex As Exception ' What are you doing? Well...
  20. Dim exp = CType(ex, IOException)
  21. REM ORZ
  22. Return
  23. End Try
  24. Next
  25. Else
  26. Dim l As New System.Collections.List<String>()
  27. SyncLock l
  28. If TypeOf l Is Decimal And l IsNot Nothing Then
  29. RemoveHandler button1.Paint, delegate
  30. End If
  31. Dim d = New System.Threading.Thread(AddressOf ThreadProc)
  32. Dim a = New Action(Sub(x, y) x + y)
  33. Static u = From x As String In l Select x.Substring(2, 4) Where x.Length > 0
  34. End SyncLock
  35. Do : Laugh() : Loop Until hello = 4
  36. End If
  37. End Sub
  38. #End Region
  39. End Class
  40. End Namespace