VB9 CTP Released
Visual Basic 9.0 LINQ Technology Preview
2006å¹´ï¼æçãå
¬éããã¦ãã¾ããGUIã¯ã¾ã å®å®ãã¦ããªãã®ã§ã³ãã³ãã©ã¤ã³ã§å®é¨ã
Imports System Module M Sub Main () ' XML literals Dim pg = _ <Programmer> <Name>akiramei</Name> <Lang>C#</Lang> </Programmer> Console.WriteLine (CStr(pg.::Name(0))) Console.WriteLine (CStr(pg.::Lang(0))) ' Anonymous Types Dim pg2 = New { Name := "akiramei", Lang := "C#" } Console.WriteLine (pg2.Name) Console.WriteLine (pg2.Lang) End Sub End Module
ãããªã³ã¼ãæ¸ãã¦ã³ã³ãã¤ã«
$ vbc /r:System.Xml.XLINQ.dll sample.vb
C#3.0ãããVB9ã®æ¹ãé¢ç½ããã§ããã