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)
39return GetHashCode(obj, 0, obj?.Length ?? 0);
Microsoft.Build.Engine.UnitTests (4)
Collections\MSBuildNameIgnoreCaseComparer_Tests.cs (4)
56Assert.Equal(MSBuildNameIgnoreCaseComparer.Default.GetHashCode("foo"), comparer.GetHashCode(s, 2, 3)); 179Assert.Equal(comparer.GetHashCode("xyz", 0, 1), comparer.GetHashCode("x")); 190Assert.Equal(comparer.GetHashCode("xyz", 1, 2), comparer.GetHashCode("YZ")); 201Assert.Equal(comparer.GetHashCode("abcd", 0, 3), comparer.GetHashCode("abc"));