C#. Copy Code. var res = list.ToDictionary(x => x, x => x); The first lambda lets you pick the key, the second one picks the value.
確定! 回上一頁