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