Added case insensitive hash code calculation (#4206)

This commit is contained in:
Alekhya 2020-06-09 14:12:53 -07:00 committed by GitHub
parent 93af4fc6b0
commit 40330be123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -476,9 +476,9 @@ namespace Microsoft.Plugin.Program.Programs
int fullPathPrime = 31;
int result = 1;
result = result * namePrime + obj.Name.GetHashCode();
result = result * executablePrime + obj.ExecutableName.GetHashCode();
result = result * fullPathPrime + obj.FullPath.GetHashCode();
result = result * namePrime + obj.Name.ToLowerInvariant().GetHashCode();
result = result * executablePrime + obj.ExecutableName.ToLowerInvariant().GetHashCode();
result = result * fullPathPrime + obj.FullPath.ToLowerInvariant().GetHashCode();
return result;
}