大∵熊

微信号:lgx1972_9Y

  博客园  :: 首页  :: 新随笔  ::  ::  :: 管理
 Sub Main()

        Dim a() As String = {"", "", "3", "4"}
        Dim b() As String = {"", "3", "4", "", "", ""}

        Dim c() = a.Union(b).Distinct.ToArray
        For Each i In c
              Console.WriteLine(i)
        Next

        Console.ReadLine()

End Sub

解决方案的项目要引用:
System.Data
System.Xml
System.Xml.Linq

posted on 2015-03-17 12:19  李国雄_lgx1972  阅读(362)  评论(0编辑  收藏  举报