Пример #1
0
        public override bool Equals(object obj)
        {
            if (!(obj is IFieldRef))
            {
                return(false);
            }
            var other = (IFieldRef)obj;

            return(_name.Equals(other.Name) && _type.Equals(other.Type));
        }
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj == null || GetType() != obj.GetType())
     {
         return(false);
     }
     Db4objects.Db4o.NativeQueries.Expr.Cmp.Operand.StaticFieldRoot casted = (Db4objects.Db4o.NativeQueries.Expr.Cmp.Operand.StaticFieldRoot
                                                                              )obj;
     return(_type.Equals(casted._type));
 }
Пример #3
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            var casted = (StaticFieldRoot
                          )obj;

            return(_type.Equals(casted._type));
        }