mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Added case insensitive hash code calculation (#4206)
This commit is contained in:
parent
93af4fc6b0
commit
40330be123
@ -476,9 +476,9 @@ namespace Microsoft.Plugin.Program.Programs
|
|||||||
int fullPathPrime = 31;
|
int fullPathPrime = 31;
|
||||||
|
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = result * namePrime + obj.Name.GetHashCode();
|
result = result * namePrime + obj.Name.ToLowerInvariant().GetHashCode();
|
||||||
result = result * executablePrime + obj.ExecutableName.GetHashCode();
|
result = result * executablePrime + obj.ExecutableName.ToLowerInvariant().GetHashCode();
|
||||||
result = result * fullPathPrime + obj.FullPath.GetHashCode();
|
result = result * fullPathPrime + obj.FullPath.ToLowerInvariant().GetHashCode();
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user