24 references to CompareTo
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
3283return ((long)value1).CompareTo((long)value2);
Microsoft.AspNetCore.Routing (1)
Matching\ILEmitTrieFactory.cs (1)
336Array.Sort(groups, static (a, b) => unchecked((long)a.Key).CompareTo(unchecked((long)b.Key)));
Microsoft.CodeAnalysis (2)
InternalUtilities\EnumField.cs (1)
76int diff = unchecked(((long)field2.Value).CompareTo((long)field1.Value));
SwitchConstantValueHelper.cs (1)
78return first.Int64Value.CompareTo(second.Int64Value);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
76int diff = unchecked(((long)field2.Value).CompareTo((long)field1.Value));
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
76int diff = unchecked(((long)field2.Value).CompareTo((long)field1.Value));
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\Checksum.cs (2)
122var result = Data1.CompareTo(other.Data1); 123return result != 0 ? result : Data2.CompareTo(other.Data2);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
76int diff = unchecked(((long)field2.Value).CompareTo((long)field1.Value));
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (2)
210if (buffer.Length.CompareTo(MaxBufferSize) > 0) 379if (buffer.Length.CompareTo(MaxBufferSize) > 0)
System.Data.Common (2)
System\Data\Common\Int64Storage.cs (1)
188return valueNo1.CompareTo((long)value);
System\Data\Selection.cs (1)
376int diff = row1.rowID.CompareTo(row2.rowID);
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
1642return xOffset.CompareTo(yOffset);
System.IO.Packaging (1)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (1)
102: StartOffset.CompareTo(pieceStreamInfo.StartOffset);
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\Util.cs (1)
78return x.CompareTo(y);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (3)
539first.UtcTicks.CompareTo(second.UtcTicks); 554return UtcTicks.CompareTo(other.UtcTicks); 558UtcTicks.CompareTo(other.UtcTicks);
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (1)
141return b.ticks.CompareTo(a.ticks);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
400public static int Compare(TimeSpan t1, TimeSpan t2) => t1._ticks.CompareTo(t2._ticks);
System.Private.Xml (1)
System\Xml\Schema\DataTypeImplementation.cs (1)
3221return ((long)value1).CompareTo((long)value2);
System.Reflection.Metadata (1)
System\Reflection\Metadata\Handle.cs (1)
193return ((long)(uint)left._value | (long)left._vType << 32).CompareTo((long)(uint)right._value | (long)right._vType << 32);
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
1153return ((long)_sign).CompareTo(other);