GlobalizationSettings.GetCollationKey

GlobalizationSettings.GetCollationKey method

Transforms the string into a comparable object according to certain collation rules.

public virtual IComparable GetCollationKey(string v, bool ignoreCase)
ParameterTypeDescription
vStringString value needs to be compared with others.
ignoreCaseBooleanwhether ignore case when comparing values

Return Value

Object can be used to compare or sort string values

See Also