<TestClass()> _ Public Class HereDocumentTest <TestMethod()> _ Public Sub Test1() Dim sql As String = <sql> SELECT C1, C2, C3 FROM T1 </sql>.Value Debug.Print(sql) End Sub End Class うnix Shell + RDBMS、(よくあるパターンはLinux + Oracle)でShellを さんざん書いたことがあるヒトなら、コンパイラ言語でヒアドキュメントが 使えないことはとっても不便に思うハズ。 VB.NETで、間接的に使えることが分かったのでlogろうw 間接的にというのは、こういうこと。 System.Xml.Linq.XElement を使うのだ。 XElementは、直接コード中に埋め込むことができるのでb