|
|
@ -309,7 +309,7 @@ namespace Apewer |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>对元素去重,且去除 NULL 值。</summary>
|
|
|
|
public static T[] Distinct<T>(this IEnumerable<T> items) |
|
|
|
public static T[] Distinct<T>(IEnumerable<T> items) |
|
|
|
{ |
|
|
|
if (items == null) throw new ArgumentNullException(nameof(items)); |
|
|
|
var count = Count(items); |
|
|
|