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