相关疑难解决方法(0)

.NET List.Distinct

我正在使用.NET 3.5.为什么我仍然会得到:

不包含'Distinct'的定义

使用此代码:

using System.Collections.Generic;

       //.. . . . . code


    List<string> Words = new List<string>();
       // many strings added here . . .
    Words = Words.Distinct().ToList();
Run Code Online (Sandbox Code Playgroud)

c# linq extension-methods .net-3.5

11
推荐指数
2
解决办法
1万
查看次数

标签 统计

.net-3.5 ×1

c# ×1

extension-methods ×1

linq ×1