public int GetHashCode(
StringComparison comparison
)
Public Function GetHashCode (
comparison As StringComparison
) As Integer
public:
int GetHashCode(
StringComparison comparison
)
member GetHashCode :
comparison : StringComparison -> int
If comparison is Ordinal or OrdinalIgnoreCase, then no new string allocation occurs on any platforms.
If comparison is culture dependent (including the invariant culture), then depending on the targeted platform a new string allocation may occur. The .NET Core 3.0 and newer builds do not allocate a new string with any comparison values.