Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public bool Equals(Atom obj)
 {
     if (ReferenceEquals(null, obj)) return false;
     if (ReferenceEquals(this, obj)) return true;
     return obj._doubleValue == _doubleValue;
 }