63 implementations of Compare
mscorlib (7)
system\array.cs (1)
1928
public int
Compare
(T x, T y) {
system\collections\generic\comparer.cs (1)
74
public abstract int
Compare
(T x, T y);
system\resources\__fastresourcecomparer.cs (1)
63
public int
Compare
(String a, String b)
system\rttype.cs (1)
3044
public Int32
Compare
(ConstructorInfo x, ConstructorInfo y)
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (1)
37
public Int32
Compare
(KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y)
system\stringcomparer.cs (1)
125
public abstract int
Compare
(String x, String y);
system\timezoneinfo.cs (1)
4152
int System.Collections.Generic.IComparer<TimeZoneInfo>.
Compare
(TimeZoneInfo x, TimeZoneInfo y) {
PresentationCore (3)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (2)
1173
int IComparer<LocalizedName>.
Compare
(LocalizedName x, LocalizedName y)
1185
int IComparer<LocalizedName>.
Compare
(LocalizedName x, LocalizedName y)
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (1)
282
int IComparer<MatchingFace>.
Compare
(MatchingFace a, MatchingFace b)
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\TextAnchor.cs (1)
782
public int
Compare
(TextSegment x, TextSegment y)
System (1)
regex\system\text\regularexpressions\RegexCharClass.cs (1)
1342
public int
Compare
(SingleRange x, SingleRange y) {
System.Activities (2)
System\Activities\RuntimeArgument.cs (1)
525
public int
Compare
(RuntimeArgument x, RuntimeArgument y)
System\Activities\Statements\TimerTable.cs (1)
363
public int
Compare
(TimerData x, TimerData y)
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\DynamicActivityPropertyChooserViewModel.cs (1)
146
public int
Compare
(DynamicActivityProperty x, DynamicActivityProperty y)
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
122
public int
Compare
(PropertyInfo x, PropertyInfo y)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\PropertyEntryNameComparer.cs (1)
43
public int
Compare
(PropertyEntry x, PropertyEntry y)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\PropertyEntryPropertyOrderComparer.cs (1)
58
public int
Compare
(PropertyEntry x, PropertyEntry y)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
1497
int IComparer<DistanceFromPoint>.
Compare
(DistanceFromPoint lhs, DistanceFromPoint rhs)
System.Configuration (1)
System\Configuration\BaseConfigurationRecord.cs (1)
4528
public int
Compare
(SectionInput x, SectionInput y) {
System.Core (5)
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
197
public int
Compare
(Producer<TKey> x, Producer<TKey> y)
521
public int
Compare
(Producer<int> x, Producer<int> y)
System\Linq\Parallel\QueryOperators\Unary\ConcatQueryOperator.cs (1)
351
public int
Compare
(ConcatKey<TLeftKey, TRightKey> x, ConcatKey<TLeftKey, TRightKey> y)
System\Linq\Parallel\Utils\PairComparer.cs (1)
35
public int
Compare
(Pair<T, U> x, Pair<T, U> y)
System\Linq\Parallel\Utils\ReverseComparer.cs (1)
32
public int
Compare
(T x, T y)
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
122
public int
Compare
(PropertyInfo x, PropertyInfo y)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\PropertyEntryNameComparer.cs (1)
43
public int
Compare
(PropertyEntry x, PropertyEntry y)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\PropertyEntryPropertyOrderComparer.cs (1)
58
public int
Compare
(PropertyEntry x, PropertyEntry y)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
1497
int IComparer<DistanceFromPoint>.
Compare
(DistanceFromPoint lhs, DistanceFromPoint rhs)
System.Data.DataSetExtensions (1)
System\Data\SortExpressionBuilder.cs (1)
108
public int
Compare
(List<object> a, List<object> b)
System.Data.Entity (2)
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (2)
380
public int
Compare
(LeftCellWrapper x, LeftCellWrapper y)
408
public int
Compare
(LeftCellWrapper x, LeftCellWrapper y)
System.Data.Services.Client (1)
System\Data\Services\Client\ArraySet.cs (1)
232
int IComparer<T>.
Compare
(T x, T y)
System.Data.SqlXml (3)
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (1)
30
public int
Compare
(XPathNavigator navThis, XPathNavigator navThat) {
System\Xml\Xsl\Xslt\Compiler.cs (1)
327
public int
Compare
(CompilerError x, CompilerError y) {
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
216
public int
Compare
(TemplateMatch x, TemplateMatch y) {
System.Runtime.Serialization (2)
System\Runtime\Serialization\ClassDataContract.cs (2)
1375
public int
Compare
(Member x, Member y)
1551
public int
Compare
(DataMember x, DataMember y)
System.ServiceModel (11)
System\ServiceModel\Channels\SequenceRangeCollection.cs (2)
355
public int
Compare
(SequenceRange x, SequenceRange y)
374
public int
Compare
(SequenceRange x, SequenceRange y)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
722
public int
Compare
(MessagePartDescription p1, MessagePartDescription p2)
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
285
public int
Compare
(QName x, QName y)
System\ServiceModel\Dispatcher\MessageFilterTable.cs (1)
614
public int
Compare
(FilterTableEntry x, FilterTableEntry y)
System\ServiceModel\Dispatcher\QueryBranchOp.cs (1)
992
public int
Compare
(QueryBranchResult x, QueryBranchResult y)
System\ServiceModel\Dispatcher\QueryNode.cs (1)
233
public int
Compare
(QueryNode item1, QueryNode item2)
System\ServiceModel\Dispatcher\QueryPrefixOp.cs (1)
12
public int
Compare
(TrieSegment t1, TrieSegment t2)
System\ServiceModel\Security\SecurityContextTokenCache.cs (1)
244
public int
Compare
(SecurityContextSecurityToken sct1, SecurityContextSecurityToken sct2)
System\ServiceModel\Security\TimeBoundedCache.cs (1)
474
public int
Compare
(IExpirableItem item1, IExpirableItem item2)
System\UriTemplateHelpers.cs (1)
366
public int
Compare
(UriTemplate x, UriTemplate y)
System.ServiceModel.Web (1)
System\ServiceModel\Web\IncomingWebRequestContext.cs (1)
367
public int
Compare
(ContentType x, ContentType y)
System.Web (1)
ModelBinding\PrefixContainer.cs (1)
75
public int
Compare
(string x, string y) {
System.Web.DataVisualization (1)
Common\DataManager\DataPoint.cs (1)
218
public int
Compare
(DataPoint x, DataPoint y)
System.Web.Extensions (4)
Compilation\WCFModel\SchemaMerger.cs (1)
757
public int
Compare
(System.Xml.XmlAttribute x, System.Xml.XmlAttribute y)
Compilation\WCFModel\WsdlInspector.cs (3)
384
public int
Compare
(Operation x, Operation y)
397
public int
Compare
(OperationFault x, OperationFault y)
416
public int
Compare
(MessagePart x, MessagePart y)
System.Windows.Forms.DataVisualization (1)
Common\DataManager\DataPoint.cs (1)
218
public int
Compare
(DataPoint x, DataPoint y)
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Connector.cs (1)
2559
int IComparer<DistanceFromPoint>.
Compare
(DistanceFromPoint lhs, DistanceFromPoint rhs)
System.Workflow.Runtime (1)
parent\Common\Shared\DigestComparer.cs (1)
8
int IComparer<byte[]>.
Compare
(byte[] digest1, byte[] digest2)
System.Xml (2)
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
640
public int
Compare
(object x, object y) {
System\Xml\XPath\Internal\SortQuery.cs (1)
180
int IComparer<SortKey>.
Compare
(SortKey x, SortKey y) {
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
2048
public int
Compare
(XNode x, XNode y) {
WindowsBase (1)
Base\MS\Internal\IO\Packaging\PieceNameHelper.cs (1)
448
int IComparer<PieceInfo>.
Compare
(PieceInfo pieceInfoA, PieceInfo pieceInfoB)
90 references to Compare
mscorlib (18)
system\collections\generic\arraysorthelper.cs (17)
198
int order = comparer.
Compare
(array[i], value);
218
if (comparer.
Compare
(keys[a], keys[b]) > 0)
261
while (comparer.
Compare
(keys[i], x) < 0) i++;
262
while (comparer.
Compare
(x, keys[j]) < 0) j--;
378
while (comparer.
Compare
(keys[++left], pivot) < 0) ;
379
while (comparer.
Compare
(pivot, keys[--right]) < 0) ;
424
if (child < n && comparer.
Compare
(keys[lo + child - 1], keys[lo + child]) < 0)
428
if (!(comparer.
Compare
(d, keys[lo + child - 1]) < 0))
449
while (j >= lo && comparer.
Compare
(t, keys[j]) < 0)
955
if (comparer.
Compare
(keys[a], keys[b]) > 0)
1010
while (comparer.
Compare
(keys[i], x) < 0) i++;
1011
while (comparer.
Compare
(x, keys[j]) < 0) j--;
1137
while (comparer.
Compare
(keys[++left], pivot) < 0) ;
1138
while (comparer.
Compare
(pivot, keys[--right]) < 0) ;
1185
if (child < n && comparer.
Compare
(keys[lo + child - 1], keys[lo + child]) < 0)
1189
if (!(comparer.
Compare
(d, keys[lo + child - 1]) < 0))
1218
while (j >= lo && comparer.
Compare
(t, keys[j]) < 0)
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (1)
39
return keyComparator.
Compare
(x.Key, y.Key);
PresentationCore (2)
Shared\MS\Internal\PriorityQueue.cs (2)
192
(rightChild < _count && _comparer.
Compare
(_heap[rightChild], _heap[leftChild]) < 0) ?
213
if (_comparer.
Compare
(_heap[parent], x) > 0)
System (33)
compmod\system\collections\generic\sorteddictionary.cs (1)
767
return keyComparer.
Compare
(x.Key, y.Key);
compmod\system\collections\generic\sortedset.cs (32)
168
if (comparer.
Compare
(els[i], els[i - 1]) == 0) {
200
if (!(comparer.
Compare
(item, min) < 0 || comparer.
Compare
(item, max) > 0) && this.Contains(item))
382
order = comparer.
Compare
(item, current.Item);
537
int order = foundMatch ? -1 : comparer.
Compare
(item, current.Item);
784
int order = comparer.
Compare
(item, current.Item);
802
int order = comparer.
Compare
(item, current.Item);
821
if (lowerBoundActive && comparer.
Compare
(from, current.Item) > 0) {
824
if (upperBoundActive && comparer.
Compare
(to, current.Item) < 0) {
936
if (comparer.
Compare
(item1, item2) == 0) {
1013
int comp = Comparer.
Compare
(mine.Current, theirs.Current);
1149
while (!mineEnded && !theirsEnded && Comparer.
Compare
(theirs.Current, max) <= 0) {
1150
int comp = Comparer.
Compare
(mine.Current, theirs.Current);
1215
if (!(comparer.
Compare
(asSorted.Max, this.Min) < 0 || comparer.
Compare
(asSorted.Min, this.Max) > 0)) {
1219
if (comparer.
Compare
(item, min) < 0)
1221
if (comparer.
Compare
(item, max) > 0)
1297
while (i < other.Length && i != 0 && comparer.
Compare
(other[i], last) == 0)
1500
if (Comparer.
Compare
(mine.Current, theirs.Current) != 0) {
1534
if (asSorted != null && AreComparersEqual(this, asSorted) && (comparer.
Compare
(Min, asSorted.Max) > 0 || comparer.
Compare
(Max, asSorted.Min) < 0)) {
1700
if (Comparer.
Compare
(lowerValue, upperValue) > 0) {
1837
int comp = (lBoundActive ? Comparer.
Compare
(min, item) : -1);
1841
comp = (uBoundActive ? Comparer.
Compare
(max, item) : 1);
1863
} else if (lBoundActive && Comparer.
Compare
(min, current.Item) > 0) {
1881
} else if (lBoundActive && Comparer.
Compare
(min, node.Item) > 0) {
1908
if (current.Left != null && (!lBoundActive || Comparer.
Compare
(min, current.Item) < 0)) {
1911
if (current.Right != null && (!uBoundActive || Comparer.
Compare
(max, current.Item) > 0)) {
1937
if (Comparer.
Compare
(item, i) == 0)
1969
if (lBoundActive && Comparer.
Compare
(min, lowerValue) > 0) {
1973
if (uBoundActive && Comparer.
Compare
(max, upperValue) < 0) {
2251
if (tree.Comparer.
Compare
(this.Current, item) == 0)
System.Activities (2)
System\Activities\Validation\ExtensionMethods.cs (2)
56
int result = comparer.
Compare
(items[mid], value);
89
if (comparer.
Compare
(pivot, items[i]) > 0)
System.Core (33)
System\Linq\Enumerable.cs (1)
2655
int c = comparer.
Compare
(keys[index1], keys[index2]);
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (1)
199
return _keyComparer.
Compare
(y.MaxKey, x.MaxKey);
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
302
if (!leftLookup.TryGetValue(wrappedLeftElement, out oldEntry) || m_leftKeyComparer.
Compare
(leftKey, oldEntry.Second) < 0)
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
291
if (!m_hashLookup.TryGetValue(wrappedLeftElem, out oldEntry) || m_leftKeyComparer.
Compare
(leftKey, oldEntry.Second) < 0)
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
373
if (!union.TryGetValue(wrappedElem, out oldEntry) || m_keyComparer.
Compare
(key, oldEntry.Second) < 0)
390
if (!union.TryGetValue(wrappedElem, out oldEntry) || m_keyComparer.
Compare
(key, oldEntry.Second) < 0)
System\Linq\Parallel\QueryOperators\Unary\ConcatQueryOperator.cs (2)
363
return m_leftComparer.
Compare
(x.m_leftKey, y.m_leftKey);
365
return m_rightComparer.
Compare
(x.m_rightKey, y.m_rightKey);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
252
if (!m_hashLookup.TryGetValue(wrappedElem, out oldEntry) || m_keyComparer.
Compare
(orderKey, oldEntry) < 0)
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (1)
194
if (m_operatorState.m_partitionId == -1 || m_keyComparer.
Compare
(candidateKey, m_operatorState.m_key) < 0)
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (2)
582
if (m_orderComparer.
Compare
(sourceOrderKey, currentValue.m_orderKey) < 0)
658
if (m_orderComparer.
Compare
(sourceOrderKey, currentValue.m_orderKey) < 0)
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (1)
199
if (m_operatorState.m_partitionId == -1 || m_keyComparer.
Compare
(candidateKey, m_operatorState.m_key) > 0)
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (3)
258
|| m_keyComparer.
Compare
(m_buffer[m_bufferIndex.Value].Second, m_sharedIndices.MaxValue) <= 0;
284
if (m_keyComparer.
Compare
(m_buffer[m_bufferIndex.Value].Second, minKey) > 0)
297
Contract.Assert(m_count <= 0 || m_keyComparer.
Compare
(currentKey, minKey) > 0,
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (5)
294
if (m_updatesSeen > 0 && m_keyComparer.
Compare
(key, m_currentLowKey) > 0)
317
if (m_operatorState.m_updatesDone == 0 || m_keyComparer.
Compare
(m_operatorState.m_currentLowKey, key) > 0)
359
return m_operatorState.m_updatesDone == 0 || m_keyComparer.
Compare
(m_operatorState.m_currentLowKey, currentKey) > 0;
378
if (m_keyComparer.
Compare
(m_buffer[m_bufferIndex.Value].Second, m_operatorState.m_currentLowKey) >= 0)
390
Contract.Assert(m_keyComparer.
Compare
(currentKey, m_operatorState.m_currentLowKey) > 0,
System\Linq\Parallel\Utils\FixedMaxHeap.cs (5)
123
if (m_comparer.
Compare
(e, m_elements[0]) < 0)
186
if (n0 < n && m_comparer.
Compare
(m_elements[i], m_elements[n0]) < 0)
190
if (n1 < n && m_comparer.
Compare
(m_elements[n0], m_elements[n1]) < 0)
201
else if (n1 < n && m_comparer.
Compare
(m_elements[i], m_elements[n1]) < 0)
225
if (m_comparer.
Compare
(m_elements[i], m_elements[j]) > 0)
System\Linq\Parallel\Utils\PairComparer.cs (2)
37
int result1 = m_comparer1.
Compare
(x.First, y.First);
43
return m_comparer2.
Compare
(x.Second, y.Second);
System\Linq\Parallel\Utils\ReverseComparer.cs (1)
34
return -m_comparer.
Compare
(x, y);
System\Linq\Parallel\Utils\Sorting.cs (4)
446
m_keyComparer.
Compare
(myKeysArr[myIndices[j0]],
519
m_keyComparer.
Compare
(leftKeys[leftIndices[j0]],
602
while (m_keyComparer.
Compare
(keys[indices[i]], pivotKey) < 0) i++;
603
while (m_keyComparer.
Compare
(keys[indices[j]], pivotKey) > 0) j--;
System.Data.DataSetExtensions (1)
System\Data\EnumerableRowCollection.cs (1)
347
return (isDescending ? -1 : 1) * comparer.
Compare
((TKey)val1, (TKey)val2);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\QueryUtil.cs (1)
856
return Comparer.
Compare
(item1, item2);