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