close

'過濾重複字串 或數字
Dim ary() As Integer = {2, 4, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3}

 

' 使用預設的相等比較子來比較值,以便從序列傳回獨特的項目。

For Each i As Integer In ary.Distinct.ToArray

MessageBox.Show(i)

Next

arrow
arrow
    文章標籤
    重複字串 vb.net
    全站熱搜

    dark99 發表在 痞客邦 留言(0) 人氣()