MA0021 - Use StringComparer.GetHashCode instead of string.GetHashCode "".GetHashCode(); // Should be StringComparer.Ordinal.GetHashCode(""); Additional resources Best practices for comparing strings in .NET String comparisons are harder than it seems