vbnc コンパイラで linq と vb.net を使用したい。
このコードをコンパイルしようとすると:
Imports System
Imports System.Linq
Imports System.Collections.Generic
Public Class Application
Public Shared Sub Main()
Dim lista As New List(Of String)
lista.Add("Uno")
lista.Add("Due")
lista.Add("Tre")
lista.Add("Quattro")
Dim source = From elem As String In lista Where elem = "Uno" select elem
System.Console.WriteLine("Hello world!")
End Sub
End Class
次のエラーがあります。
Error VBNC30205: Expected end of statement.
vbnc コンパイラは linq 関数をサポートしていないと思います。
このエラーを解決するにはどうすればよいですか?