534 references to Comparison
GenerateDocumentationAndConfigFiles (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Metrics (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Metrics.Legacy (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\DefaultOutputFormatterSelector.cs (1)
22private static readonly Comparison<MediaTypeSegmentWithQuality> _sortFunction = (left, right) =>
Microsoft.CodeAnalysis (21)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.Analyzers (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.AnalyzerUtilities (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.BannedApiAnalyzers (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.CodeStyle (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.Collections.Package (21)
Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.Debugging.Package (1)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.EditorFeatures (1)
Classification\TotalClassificationTaggerProvider.cs (1)
73private static readonly Comparison<TagSpan<IClassificationTag>> s_spanComparison = static (s1, s2) => s1.Span.Start.Position - s2.Span.Start.Position;
Microsoft.CodeAnalysis.Extensions.Package (21)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.InteractiveHost (21)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.PooledObjects.Package (1)
ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.PublicApiAnalyzers (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.ResxSourceGenerator (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.Threading.Package (21)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.CodeAnalysis.UnitTests (7)
Collections\ImmutableListTestBase.cs (3)
396Assert.Throws<ArgumentNullException>("comparison", () => this.SortTestHelper(ImmutableSegmentedList<int>.Empty, (Comparison<int>)null!)); 416Comparison<int> comparison = (x, y) => x > y ? 1 : (x < y ? -1 : 0); 533private protected abstract List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, Comparison<T> comparison);
Collections\ImmutableSegmentedListBuilderTest.cs (1)
525private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, Comparison<T> comparison)
Collections\ImmutableSegmentedListTest.cs (1)
861private protected override List<T> SortTestHelper<T>(ImmutableSegmentedList<T> list, Comparison<T> comparison)
Collections\List\SegmentedList.Generic.Tests.Sort.cs (2)
100Comparison<T> comparer = ((T first, T second) => { return iComparer.Compare(first, second); }); 115Comparison<T> comparer = ((T first, T second) => { return iComparer.Compare(first, second); });
Microsoft.CodeAnalysis.Workspaces (25)
Classification\ClassifierHelper.cs (1)
148private static readonly Comparison<ClassifiedSpan> s_spanComparison = static (s1, s2) => s1.TextSpan.Start - s2.TextSpan.Start;
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
19public static readonly Comparison<INamespaceSymbol> CompareNamespaces = CompareTo;
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (21)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
Microsoft.Extensions.Configuration (1)
ConfigurationKeyComparer.cs (1)
22internal static Comparison<string> Comparison { get; } = Instance.Compare;
Microsoft.ML.Data (2)
Evaluators\RankingEvaluator.cs (1)
1056private static Comparison<int> GetCompareItems(List<short> queryLabels, List<Single> queryOutputs)
Transforms\ValueToKeyMappingTransformerImpl.cs (1)
125Comparison<int> comp = (i, j) => _pool.GetNormStrById(i).Value.Span.CompareTo(_pool.GetNormStrById(j).Value.Span, StringComparison.Ordinal);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
124[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Comparison<>))]
netstandard (1)
netstandard.cs (1)
172[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Comparison<>))]
PresentationFramework (18)
MS\Internal\Data\LiveShapingBlock.cs (4)
64internal void FindPosition(LiveShapingItem item, out RBFinger<LiveShapingItem> oldFinger, out RBFinger<LiveShapingItem> newFinger, Comparison<LiveShapingItem> comparison) 179private RBFinger<LiveShapingItem> LocalSearch(LiveShapingItem item, int left, int right, Comparison<LiveShapingItem> comparison) 270private RBFinger<LiveShapingItem> SearchLeft(LiveShapingItem item, int offset, Comparison<LiveShapingItem> comparison) 351private RBFinger<LiveShapingItem> SearchRight(LiveShapingItem item, int offset, Comparison<LiveShapingItem> comparison)
MS\Internal\Data\LiveShapingItem.cs (1)
73internal void FindPosition(out RBFinger<LiveShapingItem> oldFinger, out RBFinger<LiveShapingItem> newFinger, Comparison<LiveShapingItem> comparison)
MS\Internal\Data\RBNode.cs (5)
113protected RBFinger<T> Find(T x, Comparison<T> comparison) 150protected RBFinger<T> BoundedSearch(T x, int low, int high, Comparison<T> comparison) 223private int BinarySearch(T x, int low, int high, Comparison<T> comparison, int compHigh, out bool found) 253protected RBFinger<T> LocateItem(RBFinger<T> finger, Comparison<T> comparison) 701protected bool Verify(RBNode<T> node, Comparison<T> comparison, int blackDepth, ref int index, ref T maxItem, out int size)
MS\Internal\Data\RBTree.cs (2)
62public Comparison<T> Comparison 671private Comparison<T> _comparison;
System\Windows\Controls\Grid.cs (6)
3335private static readonly Comparison<DefinitionBase> s_spanPreferredDistributionOrderComparer = SpanPreferredDistributionOrderComparer; 3336private static readonly Comparison<DefinitionBase> s_spanMaxDistributionOrderComparer = SpanMaxDistributionOrderComparer; 3337private static readonly Comparison<DefinitionBase> s_starDistributionOrderComparer = StarDistributionOrderComparer; 3338private static readonly Comparison<DefinitionBase> s_minRatioComparer = MinRatioComparer; 3339private static readonly Comparison<DefinitionBase> s_maxRatioComparer = MaxRatioComparer; 3340private static readonly Comparison<DefinitionBase> s_starWeightComparer = StarWeightComparer;
Roslyn.Diagnostics.Analyzers (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
System.Collections.Immutable (14)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (3)
955/// the specified <see cref="Comparison{T}"/>. 958/// The <see cref="Comparison{T}"/> to use when comparing elements. 961public void Sort(Comparison<T> comparison)
System\Collections\Immutable\ImmutableArray_1.cs (3)
794/// the specified <see cref="Comparison{T}"/>. 797/// The <see cref="Comparison{T}"/> to use when comparing elements. 801public ImmutableArray<T> Sort(Comparison<T> comparison)
System\Collections\Immutable\ImmutableList_1.Builder.cs (2)
875/// The <see cref="Comparison{T}"/> to use when comparing elements. 878public void Sort(Comparison<T> comparison)
System\Collections\Immutable\ImmutableList_1.cs (3)
432/// the specified <see cref="Comparison{T}"/>. 435/// The <see cref="Comparison{T}"/> to use when comparing elements. 439public ImmutableList<T> Sort(Comparison<T> comparison)
System\Collections\Immutable\ImmutableList_1.Node.cs (3)
566/// the specified <see cref="Comparison{T}"/>. 569/// The <see cref="Comparison{T}"/> to use when comparing elements. 572internal Node Sort(Comparison<T> comparison)
System.Data.Common (15)
System\Data\DataView.cs (3)
36private System.Comparison<DataRow>? _comparison; 163internal DataView(DataTable table, System.Predicate<DataRow>? predicate, System.Comparison<DataRow>? comparison, DataViewRowState RowState) 448internal System.Comparison<DataRow>? SortComparison
System\Data\LinqDataView.cs (1)
58Comparison<DataRow>? comparison,
System\Data\Selection.cs (4)
68private readonly System.Comparison<DataRow>? _comparison; 93public Index(DataTable table, System.Comparison<DataRow> comparison, DataViewRowState recordStates, IFilter? rowFilter) : 109private Index(DataTable table, IndexField[] indexFields, System.Comparison<DataRow>? comparison, DataViewRowState recordStates, IFilter? rowFilter) 443/// otherwise on Delete of a DataRow in the Added state, would result in the <see cref="System.Comparison&lt;DataRow&gt;"/> where the row
System\Data\SortExpressionBuilder.cs (7)
42private readonly LinkedList<Comparison<object>> _comparers = new LinkedList<Comparison<object>>(); 45private LinkedListNode<Comparison<object>>? _currentComparer; 50internal void Add(Func<T, object> keySelector, Comparison<object> compare, bool isOrderBy) 100foreach (Comparison<object> compare in _comparers) 145foreach (Comparison<object> comparer in _comparers) 180foreach (Comparison<object> comparer in _comparers)
System.Linq (1)
System\Linq\OrderedEnumerable.cs (1)
480Comparison<int> comparison;
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
2577public static void Sort<T>(T[] array, Comparison<T> comparison)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (8)
54internal static void Sort(Span<T> keys, Comparison<T> comparer) 99private static void SwapIfGreater(Span<T> keys, Comparison<T> comparer, int i, int j) 121internal static void IntrospectiveSort(Span<T> keys, Comparison<T> comparer) 134private static void IntroSort(Span<T> keys, int depthLimit, Comparison<T> comparer) 179private static int PickPivotAndPartition(Span<T> keys, Comparison<T> comparer) 217private static void HeapSort(Span<T> keys, Comparison<T> comparer) 235private static void DownHeap(Span<T> keys, int i, int n, Comparison<T> comparer) 258private static void InsertionSort(Span<T> keys, Comparison<T> comparer)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (3)
16public static Comparer<T> Create(Comparison<T> comparison) 37private readonly Comparison<T> _comparison; 39public ComparisonComparer(Comparison<T> comparison)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
1122public void Sort(Comparison<T> comparison)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (5)
4321/// Sorts the elements in the entire <see cref="Span{T}" /> using the specified <see cref="Comparison{T}" />. 4325/// <param name="comparison">The <see cref="Comparison{T}"/> to use when comparing elements.</param> 4327public static void Sort<T>(this Span<T> span, Comparison<T> comparison) 4395/// <param name="comparison">The <see cref="Comparison{T}"/> to use when comparing elements.</param> 4400public static void Sort<TKey, TValue>(this Span<TKey> keys, Span<TValue> items, Comparison<TKey> comparison)
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\EnumerableExtensions.cs (1)
23public static IEnumerable<T> OrderBy<T>(this List<T> source, Comparison<T> comparison)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
111[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Comparison<>))]
Test.Utilities (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>
Text.Analyzers (23)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
903public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 909public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 921public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
920internal static bool IsSorted<T>(this ImmutableArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (8)
65internal static void Sort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 110private static void SwapIfGreater(SegmentedArraySegment<T> keys, Comparison<T> comparer, int i, int j) 132internal static void IntrospectiveSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 145private static void IntroSort(SegmentedArraySegment<T> keys, int depthLimit, Comparison<T> comparer) 190private static int PickPivotAndPartition(SegmentedArraySegment<T> keys, Comparison<T> comparer) 235private static void HeapSort(SegmentedArraySegment<T> keys, Comparison<T> comparer) 253private static void DownHeap(SegmentedArraySegment<T> keys, int i, int n, Comparison<T> comparer) 276private static void InsertionSort(SegmentedArraySegment<T> keys, Comparison<T> comparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (2)
552/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 553public ImmutableSegmentedList<T> Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (2)
210/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 211public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
309public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
399public static void Sort<T>(SegmentedArray<T> array, Comparison<T> comparison)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
1255public void Sort(Comparison<T> comparison)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
383public void Sort(Comparison<T> compare)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
346public void Sort(Comparison<T> compare)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
17public static readonly Comparison<SuppressOperation> SuppressOperationComparer = (o1, o2) => 22public static readonly Comparison<IndentBlockOperation> IndentBlockOperationComparer = (o1, o2) =>