'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:N.N.NNNNN.N
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System

Namespace TestOutput
Public Class Instrumented

#ExternalSource("Instrumented.vbhtml", 1)
Public Shared Function Strong(s As String) As Template

#End ExternalSource
Return New Template(Sub (__razor_helper_writer)

#ExternalSource("Instrumented.vbhtml", 1)
                           


#End ExternalSource
BeginContext(__razor_helper_writer, "~/Instrumented.vbhtml", 29, 4, true)

WriteLiteralTo(__razor_helper_writer, "    ")

EndContext(__razor_helper_writer, "~/Instrumented.vbhtml", 29, 4, true)

BeginContext(__razor_helper_writer, "~/Instrumented.vbhtml", 34, 8, true)

WriteLiteralTo(__razor_helper_writer, "<strong>")

EndContext(__razor_helper_writer, "~/Instrumented.vbhtml", 34, 8, true)

BeginContext(__razor_helper_writer, "~/Instrumented.vbhtml", 43, 1, false)


#ExternalSource("Instrumented.vbhtml", 2)
WriteTo(__razor_helper_writer, s)


#End ExternalSource
EndContext(__razor_helper_writer, "~/Instrumented.vbhtml", 43, 1, false)

BeginContext(__razor_helper_writer, "~/Instrumented.vbhtml", 44, 11, true)

WriteLiteralTo(__razor_helper_writer, "</strong>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext(__razor_helper_writer, "~/Instrumented.vbhtml", 44, 11, true)


#ExternalSource("Instrumented.vbhtml", 3)


#End ExternalSource
End Sub)
End Function

Public Sub New()
MyBase.New
End Sub
Public Overrides Sub Execute()
BeginContext("~/Instrumented.vbhtml", 65, 4, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 65, 4, true)


#ExternalSource("Instrumented.vbhtml",5)
     
    Dim i As Integer = 1
    Dim foo = 

#End ExternalSource
Function (item) New Template(Sub (__razor_template_writer)

BeginContext(__razor_template_writer, "~/Instrumented.vbhtml", 118, 12, true)

WriteLiteralTo(__razor_template_writer, "<p>Foo</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext(__razor_template_writer, "~/Instrumented.vbhtml", 118, 12, true)

BeginContext("~/Instrumented.vbhtml", 130, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 130, 4, true)

BeginContext("~/Instrumented.vbhtml", 136, 15, true)

WriteLiteral("Hello, World!"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 136, 15, true)

BeginContext("~/Instrumented.vbhtml", 151, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 151, 4, true)

BeginContext("~/Instrumented.vbhtml", 156, 22, true)

WriteLiteral("<p>Hello, World!</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 156, 22, true)

End Sub)

#ExternalSource("Instrumented.vbhtml",10)


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 186, 4, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10)&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 186, 4, true)


#ExternalSource("Instrumented.vbhtml",12)
 While i <= 10


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 206, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 206, 4, true)

BeginContext("~/Instrumented.vbhtml", 211, 23, true)

WriteLiteral("<p>Hello from VB.Net, #")

EndContext("~/Instrumented.vbhtml", 211, 23, true)

BeginContext("~/Instrumented.vbhtml", 236, 1, false)


#ExternalSource("Instrumented.vbhtml",13)
                        Write(i)


#End ExternalSource
EndContext("~/Instrumented.vbhtml", 236, 1, false)

BeginContext("~/Instrumented.vbhtml", 238, 6, true)

WriteLiteral("</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 238, 6, true)


#ExternalSource("Instrumented.vbhtml",14)
    i += 1
End While


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 267, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 267, 2, true)


#ExternalSource("Instrumented.vbhtml",17)
 If i = 11 Then


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 286, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 286, 4, true)

BeginContext("~/Instrumented.vbhtml", 291, 27, true)

WriteLiteral("<p>We wrote 10 lines!</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 291, 27, true)


#ExternalSource("Instrumented.vbhtml",19)
End If


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 326, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 326, 2, true)


#ExternalSource("Instrumented.vbhtml",21)
 Do


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 333, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 333, 4, true)

BeginContext("~/Instrumented.vbhtml", 338, 16, true)

WriteLiteral("<p>Hello again: ")

EndContext("~/Instrumented.vbhtml", 338, 16, true)

BeginContext("~/Instrumented.vbhtml", 355, 1, false)


#ExternalSource("Instrumented.vbhtml",22)
                Write(i)


#End ExternalSource
EndContext("~/Instrumented.vbhtml", 355, 1, false)

BeginContext("~/Instrumented.vbhtml", 356, 6, true)

WriteLiteral("</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 356, 6, true)


#ExternalSource("Instrumented.vbhtml",23)
    i -= 1
Loop While i > 0


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 392, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 392, 2, true)


#ExternalSource("Instrumented.vbhtml",26)
 Select Case i
    Case 11


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 423, 8, true)

WriteLiteral("        ")

EndContext("~/Instrumented.vbhtml", 423, 8, true)

BeginContext("~/Instrumented.vbhtml", 432, 38, true)

WriteLiteral("<p>No really, we wrote 10 lines!</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 432, 38, true)


#ExternalSource("Instrumented.vbhtml",29)
    Case Else


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 485, 8, true)

WriteLiteral("        ")

EndContext("~/Instrumented.vbhtml", 485, 8, true)

BeginContext("~/Instrumented.vbhtml", 494, 41, true)

WriteLiteral("<p>We wrote a bunch more lines too!</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 494, 41, true)


#ExternalSource("Instrumented.vbhtml",31)
End Select


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 547, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 547, 2, true)


#ExternalSource("Instrumented.vbhtml",33)
 For j as Integer = 1 to 10 Step 2


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 585, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 585, 4, true)

BeginContext("~/Instrumented.vbhtml", 590, 29, true)

WriteLiteral("<p>Hello again from VB.Net, #")

EndContext("~/Instrumented.vbhtml", 590, 29, true)

BeginContext("~/Instrumented.vbhtml", 621, 1, false)


#ExternalSource("Instrumented.vbhtml",34)
                              Write(j)


#End ExternalSource
EndContext("~/Instrumented.vbhtml", 621, 1, false)

BeginContext("~/Instrumented.vbhtml", 623, 6, true)

WriteLiteral("</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 623, 6, true)


#ExternalSource("Instrumented.vbhtml",35)
Next j


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 637, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 637, 2, true)


#ExternalSource("Instrumented.vbhtml",37)
 Try


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 645, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 645, 4, true)

BeginContext("~/Instrumented.vbhtml", 650, 37, true)

WriteLiteral("<p>That time, we wrote 5 lines!</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 650, 37, true)


#ExternalSource("Instrumented.vbhtml",39)
Catch ex as Exception


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 710, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 710, 4, true)

BeginContext("~/Instrumented.vbhtml", 715, 29, true)

WriteLiteral("<p>Oh no! An error occurred: ")

EndContext("~/Instrumented.vbhtml", 715, 29, true)

BeginContext("~/Instrumented.vbhtml", 746, 10, false)


#ExternalSource("Instrumented.vbhtml",40)
                              Write(ex.Message)


#End ExternalSource
EndContext("~/Instrumented.vbhtml", 746, 10, false)

BeginContext("~/Instrumented.vbhtml", 757, 6, true)

WriteLiteral("</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 757, 6, true)


#ExternalSource("Instrumented.vbhtml",41)
End Try


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 772, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 772, 2, true)


#ExternalSource("Instrumented.vbhtml",43)
 With i


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 783, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 783, 4, true)

BeginContext("~/Instrumented.vbhtml", 788, 12, true)

WriteLiteral("<p>i is now ")

EndContext("~/Instrumented.vbhtml", 788, 12, true)

BeginContext("~/Instrumented.vbhtml", 802, 11, false)


#ExternalSource("Instrumented.vbhtml",44)
             Write(.ToString())


#End ExternalSource
EndContext("~/Instrumented.vbhtml", 802, 11, false)

BeginContext("~/Instrumented.vbhtml", 814, 6, true)

WriteLiteral("</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 814, 6, true)


#ExternalSource("Instrumented.vbhtml",45)
End With


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 830, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 830, 2, true)


#ExternalSource("Instrumented.vbhtml",47)
 SyncLock New Object()


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 856, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 856, 4, true)

BeginContext("~/Instrumented.vbhtml", 861, 49, true)

WriteLiteral("<p>This block is locked, for your security!</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 861, 49, true)


#ExternalSource("Instrumented.vbhtml",49)
End SyncLock


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 924, 2, true)

WriteLiteral(""&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 924, 2, true)


#ExternalSource("Instrumented.vbhtml",51)
 Using New System.IO.MemoryStream()


#End ExternalSource
BeginContext("~/Instrumented.vbhtml", 963, 4, true)

WriteLiteral("    ")

EndContext("~/Instrumented.vbhtml", 963, 4, true)

BeginContext("~/Instrumented.vbhtml", 968, 78, true)

WriteLiteral("<p>Some random memory stream will be disposed after rendering this block</p>"&Global.Microsoft.VisualBasic.ChrW(13)&Global.Microsoft.VisualBasic.ChrW(10))

EndContext("~/Instrumented.vbhtml", 968, 78, true)


#ExternalSource("Instrumented.vbhtml",53)
End Using

#End ExternalSource
End Sub
End Class
End Namespace
