StringSegmentComparerOrdinalNonRandomized Property

Gets a StringSegmentComparer object that performs a case-sensitive ordinal string comparison. The returned comparer is functionally equivalent with Ordinal but it ensures that the hash code of a specific string is always the same, regardless of the targeted platform or the length of the string.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static StringSegmentComparer OrdinalNonRandomized { get; }

Property Value

StringSegmentComparer

Remarks

  Security Note

Never use this comparer for a collection that can be populated by a publicly available service because it can be a target of hash collision attacks, which may radically degrade the performance.

See Also