扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:John Chen 来源:论坛整理 2007年11月9日
关键字: Visual Basic 不完全入门 LINQ 进阶
Dim Person = New With {.Name = "John Chen", .Age = 13} Console.WriteLine("Name:" & Person.Name) Console.WriteLine("Age:" & Person.Age) |
Public Class _ClosureClass _Closure$__10 ' Methods <DebuggerNonUserCode> _ Public Sub New()Sub New() <DebuggerNonUserCode> _ Public Sub New()Sub New(ByVal other As _Closure$__10) ' Fields Public $VB$Local_Name As String Public $VB$Local_Age As Integer End Class |
Dim Data As String() = {"a", "b", "d", "c"} Dim Query = From O In Data Order By O Descending '这就是核心 '输出信息 For Each QItem In Query Console.WriteLine(QItem) Next |
Dim CLRLanguage() As String = {"Visual Basic", "C#", "J#", "C++/CLI"} Dim CLRCount() As KeyValuePair(Of String, Integer) = {New KeyValuePair(Of String, Integer)("Visual Basic", 1000000), _ New KeyValuePair(Of String, Integer)("C#", 1200000), _ New KeyValuePair(Of String, Integer)("J#", 300000), _ New KeyValuePair(Of String, Integer)("C++/CLI", 600000)} Dim Query = (From O As String In CLRLanguage Order By (From Count In CLRCount Where Count.Key = O Select Count.Value)) |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者