GlobalizationSettings.Compare

GlobalizationSettings.Compare method

Compares two string values according to certain collation rules.

public virtual int Compare(string v1, string v2, bool ignoreCase)
ParameterTypeDescription
v1Stringthe first string
v2Stringthe second string
ignoreCaseBooleanwhether ignore case when comparing values

Return Value

Integer that indicates the lexical relationship between the two comparands

See Also