private static void EnsureTypeConsistency(Atom left, Atom right) { if (left._type != right._type) throw new InvalidCastException(String.Format("{0} and {1} types are not compatible", left._type, right._type)); }
public bool Equals(Atom obj) { if (ReferenceEquals(null, obj)) return false; if (ReferenceEquals(this, obj)) return true; return obj._doubleValue == _doubleValue; }