5 instantiations of Comparer
PresentationFramework (1)
MS\Internal\Data\SortFieldComparer.cs (1)
37: new Comparer(culture);
System.Collections.NonGeneric (2)
System\Collections\SortedList.cs (2)
85comparer = new Comparer(CultureInfo.CurrentCulture); 101comparer = new Comparer(CultureInfo.CurrentCulture);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (2)
20public static readonly Comparer Default = new Comparer(CultureInfo.CurrentCulture); 21public static readonly Comparer DefaultInvariant = new Comparer(CultureInfo.InvariantCulture);
30 references to Comparer
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Misc\InvariantComparer.cs (1)
29return Comparer.Default.Compare(a, b);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
76[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))]
netstandard (1)
netstandard.cs (1)
92[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))]
PresentationFramework (4)
MS\Internal\Data\SortFieldComparer.cs (3)
35_comparer = (culture == null || culture == CultureInfo.InvariantCulture) ? Comparer.DefaultInvariant 36: (culture == CultureInfo.CurrentCulture) ? Comparer.Default 230private Comparer _comparer;
System\Windows\Data\PropertyGroupDescription.cs (1)
300int value = Comparer.DefaultInvariant.Compare(xName, yName);
System.Collections.NonGeneric (2)
artifacts\obj\System.Collections.NonGeneric\Debug\net10.0\System.Collections.NonGeneric.Forwards.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))]
System\Collections\CaseInsensitiveComparer.cs (1)
59return Comparer.Default.Compare(a, b);
System.ComponentModel.TypeConverter (1)
System\InvariantComparer.cs (1)
26return Comparer.Default.Compare(a, b);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
856comparer ??= Comparer.Default; 890if (comparer == Comparer.Default) 2024comparer ??= Comparer.Default; 2036if (comparer == Comparer.Default)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (2)
616Sort(0, Count, Comparer.Default); 767comparer ??= Comparer.Default;
src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (2)
20public static readonly Comparer Default = new Comparer(CultureInfo.CurrentCulture); 21public static readonly Comparer DefaultInvariant = new Comparer(CultureInfo.InvariantCulture);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (1)
119return Comparer.Default.Compare(x, y);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
1256/// Similar to <see cref="Comparer"/> but surfaces the actual comparer being used to hash entries.
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (2)
125Comparer comparer = Comparer.Default;
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
74[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))]
System.Runtime.Extensions (1)
System.Runtime.Extensions.cs (1)
33[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Comparer))]
System.Web.Services.Description (1)
System\Web\Services\InvariantComparer.cs (1)
30return Comparer.Default.Compare(a, b);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\StarLayoutInfo.cs (2)
164return Comparer.Default.Compare(x.AllocatedStarWidth / x.RequestedStarWeight, 177return Comparer.Default.Compare((x.RequestedStarMaxWidth - x.AllocatedStarWidth) / x.RequestedStarWeight,
System.Windows.Forms (3)
misc\InvariantComparer.cs (1)
27return Comparer.Default.Compare(a, b);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.RowComparer.cs (2)
109result = Comparer.Default.Compare(value1.ToString(), value2.ToString()); 114result = Comparer.Default.Compare(value1, value2);