Skip to content

Commit 879b813

Browse files
committed
ToSortedSet
1 parent f8f0878 commit 879b813

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Foundation/.Net-5.0/Linq/IEnumerableExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ public static SortedList<TKey, TValue> ToSortedList<TKey, TValue>(this IEnumerab
296296
return list;
297297
}
298298

299+
[Pure]
300+
public static SortedSet<T> ToSortedSet<T>(this IEnumerable<T> source) => new SortedSet<T>(source);
301+
299302
[Pure]
300303
public static SortedSet<T> ToSortedSet<T>(this IEnumerable<T> source, IComparer<T> comparer) => new SortedSet<T>(source, comparer);
301304

0 commit comments

Comments
 (0)