Table of Contents

Method TryCompare

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

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

storedValue string

The metadata value as stored (a string).

result int

When the method returns true: a negative number when the stored value sorts before this value, zero when equal, positive when after.

Returns

bool

true when the stored value could be interpreted in this value's domain; otherwise false, in which case the comparison never matches.

Share