8 instantiations of SortKey
Microsoft.AspNetCore.Razor.Utilities.Shared (8)
Utilities\SortHelper`1.cs (8)
82
keys[0] =
new
(Index: 0, previousKey);
87
keys[i] =
new
(Index: i, currentKey);
111
keys[0] =
new
(Index: 0, previousKey);
116
keys[i] =
new
(Index: i, currentKey);
156
keys[0] =
new
(Index: 0, previousKey);
161
keys[i] =
new
(Index: i, currentKey);
186
keys[0] =
new
(Index: 0, previousKey);
191
keys[i] =
new
(Index: i, currentKey);
16 references to SortKey
Microsoft.AspNetCore.Razor.Utilities.Shared (16)
EnumerableExtensions.cs (1)
578
using var keys =
SortKey
<TKey>.GetPooledArray(minimumLength: length);
ImmutableArrayExtensions.cs (1)
1249
using var keys =
SortKey
<TKey>.GetPooledArray(minimumLength: length);
ImmutableArrayExtensions_Unsafe.cs (1)
183
using var keys =
SortKey
<TKey>.GetPooledArray(minimumLength: length);
ReadOnlyListExtensions.cs (1)
1465
using var keys =
SortKey
<TKey>.GetPooledArray(minimumLength: length);
Utilities\SortComparer`1.cs (5)
9
internal abstract class SortComparer<T> : IComparer<
SortKey
<T>>
11
public static IComparer<
SortKey
<T>> GetOrCreate(IComparer<T> comparer, bool descending)
25
public static IComparer<
SortKey
<T>> Create(Comparison<T> comparison, bool descending)
36
public int Compare(
SortKey
<T> x,
SortKey
<T> y)
Utilities\SortHelper`1.cs (5)
36
public IComparer<
SortKey
<T>> GetOrCreateComparer()
71
public bool ComputeKeys<TElement>(ReadOnlySpan<TElement> items, Func<TElement, T> keySelector, Span<
SortKey
<T>> keys)
104
private bool ComputeIdentityKeys<TElement>(ReadOnlySpan<TElement> items, Span<
SortKey
<T>> keys)
144
public bool ComputeKeys<TElement>(IReadOnlyList<TElement> items, Func<TElement, T> keySelector, Span<
SortKey
<T>> keys)
178
private bool ComputeIdentityKeys<TElement>(IReadOnlyList<TElement> items, Span<
SortKey
<T>> keys)
Utilities\SortKey`1.cs (2)
11
public static PooledArray<
SortKey
<T>> GetPooledArray(int minimumLength)
12
=> ArrayPool<
SortKey
<T>>.Shared.GetPooledArray(minimumLength);