171 references to ComparisonResult
Microsoft.CodeAnalysis (24)
MetadataReference\AssemblyIdentityComparer.cs (20)
62return Compare(reference: null, referenceDisplayName, definition, unificationApplied: out _, ignoreVersion: false) != ComparisonResult.NotEquivalent; 73return Compare(reference, referenceDisplayName: null, definition, unificationApplied: out _, ignoreVersion: false) != ComparisonResult.NotEquivalent; 81public ComparisonResult Compare(AssemblyIdentity reference, AssemblyIdentity definition) 87internal ComparisonResult Compare(AssemblyIdentity? reference, string? referenceDisplayName, AssemblyIdentity definition, out bool unificationApplied, bool ignoreVersion) 99return eq.GetValueOrDefault() ? ComparisonResult.Equivalent : ComparisonResult.NotEquivalent; 109return ComparisonResult.NotEquivalent; 118return ComparisonResult.NotEquivalent; 123return ComparisonResult.Equivalent; 133return ComparisonResult.NotEquivalent; 140return ComparisonResult.NotEquivalent; 145return ComparisonResult.NotEquivalent; 150return ComparisonResult.Equivalent; 158return ComparisonResult.NotEquivalent; 163return ComparisonResult.NotEquivalent; 168return ComparisonResult.NotEquivalent; 191return ComparisonResult.Equivalent; 196return ComparisonResult.EquivalentIgnoringVersion; 199return ComparisonResult.NotEquivalent; 202return ComparisonResult.Equivalent;
ReferenceManager\CommonReferenceManager.Binding.cs (1)
564IdentityComparer.Compare(referenceIdentity, resolvedAssembly.Identity) == AssemblyIdentityComparer.ComparisonResult.NotEquivalent)
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
944case AssemblyIdentityComparer.ComparisonResult.NotEquivalent: 947case AssemblyIdentityComparer.ComparisonResult.Equivalent: 950case AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion:
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Retargeting\RetargetingModuleSymbol.cs (2)
216Debug.Assert(identityComparer.Compare(moduleReferences.Identities[i], definitionIdentity) != AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 217Debug.Assert(identityComparer.Compare(moduleReferences.Identities[i], underlyingBoundReferences[j].Identity) != AssemblyIdentityComparer.ComparisonResult.NotEquivalent);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (8)
EEMetadataReferenceResolver.cs (4)
65var compareResult = _identityComparer.Compare(referenceIdentity, identity); 68case AssemblyIdentityComparer.ComparisonResult.NotEquivalent: 70case AssemblyIdentityComparer.ComparisonResult.Equivalent: 72case AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion:
MetadataUtilities.cs (4)
285var compareResult = identityComparer.Compare(referencedModule, identity); 288case AssemblyIdentityComparer.ComparisonResult.NotEquivalent: 291case AssemblyIdentityComparer.ComparisonResult.Equivalent: 292case AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion:
Microsoft.CodeAnalysis.UnitTests (135)
MetadataReferences\AssemblyIdentityComparerTests.cs (127)
18AssemblyIdentityComparer.ComparisonResult match, 19AssemblyIdentityComparer.ComparisonResult? fusionMatch = null, 46var fusionResult1 = FusionAssemblyIdentityComparer.CompareAssemblyIdentity(displayName1, displayName2, ignoreVersion, policy: fusionPolicy, unificationApplied: out fusionUnificationApplied1); 60var actual1 = comparer.Compare(null, displayName1, id2, out unificationApplied1, ignoreVersion); 67var actual2 = comparer.Compare(id1, null, id2, out unificationApplied2, ignoreVersion); 81AssemblyIdentityComparer.ComparisonResult.Equivalent, 87AssemblyIdentityComparer.ComparisonResult.Equivalent, 93AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 94fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 100AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 101fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 107AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 108fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 114AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 115fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 121AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 122fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 128AssemblyIdentityComparer.ComparisonResult.Equivalent, 138AssemblyIdentityComparer.ComparisonResult.Equivalent, 144AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 150AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 160AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 166AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 172AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 178AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 184AssemblyIdentityComparer.ComparisonResult.Equivalent, 190AssemblyIdentityComparer.ComparisonResult.Equivalent, 196AssemblyIdentityComparer.ComparisonResult.Equivalent, 202AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 208AssemblyIdentityComparer.ComparisonResult.Equivalent, 214AssemblyIdentityComparer.ComparisonResult.Equivalent, 226AssemblyIdentityComparer.ComparisonResult.Equivalent, 232AssemblyIdentityComparer.ComparisonResult.Equivalent, 238AssemblyIdentityComparer.ComparisonResult.Equivalent, 244AssemblyIdentityComparer.ComparisonResult.Equivalent, 250AssemblyIdentityComparer.ComparisonResult.Equivalent, 256AssemblyIdentityComparer.ComparisonResult.Equivalent, 262AssemblyIdentityComparer.ComparisonResult.Equivalent, 268AssemblyIdentityComparer.ComparisonResult.Equivalent, 274AssemblyIdentityComparer.ComparisonResult.Equivalent, 280AssemblyIdentityComparer.ComparisonResult.Equivalent, 286AssemblyIdentityComparer.ComparisonResult.Equivalent, 292AssemblyIdentityComparer.ComparisonResult.Equivalent, 298AssemblyIdentityComparer.ComparisonResult.Equivalent, 304AssemblyIdentityComparer.ComparisonResult.Equivalent, 310AssemblyIdentityComparer.ComparisonResult.Equivalent, 316AssemblyIdentityComparer.ComparisonResult.Equivalent, 322AssemblyIdentityComparer.ComparisonResult.Equivalent, 332AssemblyIdentityComparer.ComparisonResult.Equivalent, 338AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 344AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 354AssemblyIdentityComparer.ComparisonResult.Equivalent, 360AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 366AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 372AssemblyIdentityComparer.ComparisonResult.Equivalent, 378AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 384AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 394AssemblyIdentityComparer.ComparisonResult.Equivalent, 400AssemblyIdentityComparer.ComparisonResult.Equivalent, 406AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 412AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 418AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 424AssemblyIdentityComparer.ComparisonResult.Equivalent, 430AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 436AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 442AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 448AssemblyIdentityComparer.ComparisonResult.Equivalent, 458AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion, 464AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion, 470AssemblyIdentityComparer.ComparisonResult.Equivalent, 476AssemblyIdentityComparer.ComparisonResult.Equivalent, 482AssemblyIdentityComparer.ComparisonResult.Equivalent, 489AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 490fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 496AssemblyIdentityComparer.ComparisonResult.Equivalent, 502AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 507AssemblyIdentityComparer.ComparisonResult.Equivalent, 514AssemblyIdentityComparer.ComparisonResult.Equivalent, 521AssemblyIdentityComparer.ComparisonResult.Equivalent, 527AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 533AssemblyIdentityComparer.ComparisonResult.Equivalent, 539AssemblyIdentityComparer.ComparisonResult.Equivalent, 545AssemblyIdentityComparer.ComparisonResult.Equivalent, 552AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 557AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 562AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 572AssemblyIdentityComparer.ComparisonResult.Equivalent, 590AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 595AssemblyIdentityComparer.ComparisonResult.Equivalent, 605AssemblyIdentityComparer.ComparisonResult.Equivalent, 612AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 613fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 630AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 641AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 646AssemblyIdentityComparer.ComparisonResult.Equivalent); 651AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 660AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 666AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 676AssemblyIdentityComparer.ComparisonResult.Equivalent); 682AssemblyIdentityComparer.ComparisonResult.Equivalent, 688AssemblyIdentityComparer.ComparisonResult.Equivalent); 693AssemblyIdentityComparer.ComparisonResult.Equivalent); 698AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 704AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 714AssemblyIdentityComparer.ComparisonResult.Equivalent, 724AssemblyIdentityComparer.ComparisonResult.Equivalent, 730AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 736AssemblyIdentityComparer.ComparisonResult.Equivalent, 742AssemblyIdentityComparer.ComparisonResult.Equivalent, 748AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 754AssemblyIdentityComparer.ComparisonResult.Equivalent, 760AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 766AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 773AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 774fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 780AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 781fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent); 786AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion, 787fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent, 794AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 799AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion, 805AssemblyIdentityComparer.ComparisonResult.NotEquivalent); 810AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion, 816AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 817fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent); 822AssemblyIdentityComparer.ComparisonResult.NotEquivalent, 823fusionMatch: AssemblyIdentityComparer.ComparisonResult.Equivalent);
MetadataReferences\FusionAssemblyIdentityComparer.cs (8)
36internal static AssemblyIdentityComparer.ComparisonResult CompareAssemblyIdentity(string fullName1, string fullName2, bool ignoreVersion, FusionAssemblyPortabilityPolicy policy, out bool unificationApplied) 45return AssemblyIdentityComparer.ComparisonResult.NotEquivalent; 52return AssemblyIdentityComparer.ComparisonResult.Equivalent; 56return AssemblyIdentityComparer.ComparisonResult.Equivalent; 61return AssemblyIdentityComparer.ComparisonResult.Equivalent; 66return AssemblyIdentityComparer.ComparisonResult.EquivalentIgnoringVersion; 70return equivalent ? AssemblyIdentityComparer.ComparisonResult.Equivalent : AssemblyIdentityComparer.ComparisonResult.NotEquivalent;
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Retargeting\RetargetingModuleSymbol.vb (2)
201Debug.Assert(identityComparer.Compare(referencedAssemblies(i), definitionIdentity) <> AssemblyIdentityComparer.ComparisonResult.NotEquivalent) 202Debug.Assert(identityComparer.Compare(referencedAssemblies(i), underlyingBoundReferences(j).Identity) <> AssemblyIdentityComparer.ComparisonResult.NotEquivalent)