mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Added case insensitive hash code calculation (#4206)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user