110,539
社区成员
发帖
与我相关
我的任务
分享
static void Main(string[] args)
{
string[] temp = new string[] { "aaa", "bbb", "ccc", "aaa", "bbb", "ccc" };
Console.WriteLine( temp.Distinct<string>().Count<string>());
}
Dim aa As String() = {1, 2, 1, 2, 1, 2}
Dim x = Aggregate a In aa Select a Distinct Into Count()