You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`bool Contains<T>(T) where T : IEquatable<T>`[reference](https://learn.microsoft.com/en-us/dotnet/api/system.memoryextensions.contains?view=net-10.0#system-memoryextensions-contains-1(system-span((-0))-0))
667
667
*`void Sort<T>(Comparison<T>)`
668
-
*`void Sort<T>() where T : IComparable<T>`
668
+
*`void Sort<T>() where T : IComparable<T>`[reference](https://learn.microsoft.com/en-us/dotnet/api/system.memoryextensions.sort?view=net-10.0#system-memoryextensions-sort-1(system-span((-0))))
669
669
670
670
671
671
#### Span<TKey>
672
672
673
-
*`void Sort<TKey, TValue, TComparer>(Span<TValue>, TComparer) where TComparer : IComparer<TKey>`
*`bool Contains<T>(T) where T : IEquatable<T>`[reference](https://learn.microsoft.com/en-us/dotnet/api/system.memoryextensions.contains?view=net-10.0#system-memoryextensions-contains-1(system-span((-0))-0))
1112
1112
*`void Sort<T>(Comparison<T>)`
1113
-
*`void Sort<T>() where T : IComparable<T>`
1113
+
*`void Sort<T>() where T : IComparable<T>`[reference](https://learn.microsoft.com/en-us/dotnet/api/system.memoryextensions.sort?view=net-10.0#system-memoryextensions-sort-1(system-span((-0))))
1114
1114
1115
1115
1116
1116
#### Span<TKey>
1117
1117
1118
-
*`void Sort<TKey, TValue, TComparer>(Span<TValue>, TComparer) where TComparer : IComparer<TKey>`
Copy file name to clipboardExpand all lines: src/Split/net461/Polyfill_Memory_SpanSort.cs
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,16 @@ namespace Polyfills;
7
7
usingSystem.Buffers;
8
8
staticpartialclassPolyfill
9
9
{
10
+
/// <summary>
11
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the <see cref="IComparable{T}"/> implementation of each element of the <see cref="Span{T}"/>.
12
+
/// </summary>
10
13
publicstaticvoidSort<T>(thisSpan<T>source)
11
14
whereT:IComparable<T>
12
15
=>Sort(source,(x,y)=>x.CompareTo(y));
16
+
/// <summary>
17
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the specified <see cref="Comparison{T}"/>.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the <see cref=" IComparable{T}"/> implementation of each key.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparer.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparison.
Copy file name to clipboardExpand all lines: src/Split/net462/Polyfill_Memory_SpanSort.cs
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,16 @@ namespace Polyfills;
7
7
usingSystem.Buffers;
8
8
staticpartialclassPolyfill
9
9
{
10
+
/// <summary>
11
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the <see cref="IComparable{T}"/> implementation of each element of the <see cref="Span{T}"/>.
12
+
/// </summary>
10
13
publicstaticvoidSort<T>(thisSpan<T>source)
11
14
whereT:IComparable<T>
12
15
=>Sort(source,(x,y)=>x.CompareTo(y));
16
+
/// <summary>
17
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the specified <see cref="Comparison{T}"/>.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the <see cref=" IComparable{T}"/> implementation of each key.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparer.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparison.
Copy file name to clipboardExpand all lines: src/Split/net47/Polyfill_Memory_SpanSort.cs
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,16 @@ namespace Polyfills;
7
7
usingSystem.Buffers;
8
8
staticpartialclassPolyfill
9
9
{
10
+
/// <summary>
11
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the <see cref="IComparable{T}"/> implementation of each element of the <see cref="Span{T}"/>.
12
+
/// </summary>
10
13
publicstaticvoidSort<T>(thisSpan<T>source)
11
14
whereT:IComparable<T>
12
15
=>Sort(source,(x,y)=>x.CompareTo(y));
16
+
/// <summary>
17
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the specified <see cref="Comparison{T}"/>.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the <see cref=" IComparable{T}"/> implementation of each key.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparer.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparison.
Copy file name to clipboardExpand all lines: src/Split/net471/Polyfill_Memory_SpanSort.cs
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,16 @@ namespace Polyfills;
7
7
usingSystem.Buffers;
8
8
staticpartialclassPolyfill
9
9
{
10
+
/// <summary>
11
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the <see cref="IComparable{T}"/> implementation of each element of the <see cref="Span{T}"/>.
12
+
/// </summary>
10
13
publicstaticvoidSort<T>(thisSpan<T>source)
11
14
whereT:IComparable<T>
12
15
=>Sort(source,(x,y)=>x.CompareTo(y));
16
+
/// <summary>
17
+
/// Sorts the elements in the entire <see cref="Span{T}"/> using the specified <see cref="Comparison{T}"/>.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the <see cref=" IComparable{T}"/> implementation of each key.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparer.
/// Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first <see cref="Span{T}"/> using the specified comparison.
0 commit comments