2 instantiations of AssemblyNameComparer
Microsoft.Build.Tasks.Core (2)
AssemblyNameComparer.cs (2)
21internal static readonly IComparer Comparer = new AssemblyNameComparer(false); 26internal static readonly IComparer ComparerConsiderRetargetable = new AssemblyNameComparer(true);
18 references to AssemblyNameComparer
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\GlobalAssemblyCache.cs (1)
290fusionNameToResolvedPath = new ConcurrentDictionary<AssemblyNameExtension, string>(AssemblyNameComparer.GenericComparer);
AssemblyDependency\ReferenceTable.cs (2)
370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1368var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer);
AssemblyNameExtension.cs (1)
231return new HashSet<AssemblyNameExtension>(AssemblyNameComparer.GenericComparerConsiderRetargetable);
RedistList.cs (2)
51private readonly ConcurrentDictionary<AssemblyNameExtension, bool> _assemblyNameInRedist = new ConcurrentDictionary<AssemblyNameExtension, bool>(AssemblyNameComparer.GenericComparer); 67private readonly ConcurrentDictionary<AssemblyNameExtension, AssemblyNameExtension> _remappingCache = new ConcurrentDictionary<AssemblyNameExtension, AssemblyNameExtension>(AssemblyNameComparer.GenericComparerConsiderRetargetable);
Microsoft.Build.Tasks.UnitTests (12)
AssemblyNameEx_Tests.cs (12)
623Assert.True(AssemblyNameComparer.GenericComparer.Equals(a, b)); 624Assert.False(AssemblyNameComparer.GenericComparer.Equals(a, d)); 626Assert.False(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, b)); 627Assert.True(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, c)); 628Assert.False(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, d)); 631Assert.Equal(0, AssemblyNameComparer.Comparer.Compare(a, b)); 632Assert.True(AssemblyNameComparer.Comparer.Compare(a, d) > 0); 633Assert.True(AssemblyNameComparer.Comparer.Compare(a, e) < 0); 635Assert.Equal(0, AssemblyNameComparer.ComparerConsiderRetargetable.Compare(a, c)); 636Assert.True(AssemblyNameComparer.ComparerConsiderRetargetable.Compare(a, b) > 0); 637Assert.True(AssemblyNameComparer.ComparerConsiderRetargetable.Compare(a, d) > 0); 638Assert.True(AssemblyNameComparer.ComparerConsiderRetargetable.Compare(a, e) < 0);