Method TryCompare
TryCompare(string, out int)
Compares a stored metadata string against this value in this value's comparison domain.
public bool TryCompare(string storedValue, out int result)
Parameters
storedValuestringThe metadata value as stored (a string).
resultintWhen the method returns
true: a negative number when the stored value sorts before this value, zero when equal, positive when after.
Returns
- bool
truewhen the stored value could be interpreted in this value's domain; otherwisefalse, in which case the comparison never matches.