Implemented interface member:
method
GetHashCode
Microsoft.Build.Collections.IConstrainedEqualityComparer<T>.GetHashCode(T, System.Int32, System.Int32)
5 references to GetHashCode
Microsoft.Build (1)
MSBuildNameIgnoreCaseComparer.cs (1)
39
return
GetHashCode
(obj, 0, obj?.Length ?? 0);
Microsoft.Build.Engine.UnitTests (4)
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (4)
56
Assert.Equal(MSBuildNameIgnoreCaseComparer.Default.GetHashCode("foo"), comparer.
GetHashCode
(s, 2, 3));
179
Assert.Equal(comparer.
GetHashCode
("xyz", 0, 1), comparer.GetHashCode("x"));
190
Assert.Equal(comparer.
GetHashCode
("xyz", 1, 2), comparer.GetHashCode("YZ"));
201
Assert.Equal(comparer.
GetHashCode
("abcd", 0, 3), comparer.GetHashCode("abc"));