public int CompareTo(SymbolSpace other) { if (IsValid && other.IsValid) { return(_symbol.CompareTo(other._symbol)); } return(IsValid.CompareTo(other.IsValid)); }
public bool Equals(SymbolSpace other) { return(_isSymbolValid ? _symbol.CompareTo(other._symbol) == 0 : _isSymbolValid == other._isSymbolValid); }