Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj is TypeMember)
            {
                return(TypeMember.Equals(this, (TypeMember)obj));
            }

            return(false);
        }
Exemplo n.º 2
0
		public static bool Equals(TypeMember tm1, TypeMember tm2)
		{
			if(Object.ReferenceEquals(tm1,tm2))
				return true;
			if(Object.ReferenceEquals(tm1,null) || Object.ReferenceEquals(tm2,null))
				return false;
			if(tm1.type == tm2.type && tm1.member == tm2.member)
				return true;
			return false;
		}
Exemplo n.º 3
0
 public static bool Equals(TypeMember tm1, TypeMember tm2)
 {
     if (Object.ReferenceEquals(tm1, tm2))
     {
         return(true);
     }
     if (Object.ReferenceEquals(tm1, null) || Object.ReferenceEquals(tm2, null))
     {
         return(false);
     }
     if (tm1.type == tm2.type && tm1.member == tm2.member)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 4
0
 public static bool operator !=(TypeMember tm1, TypeMember tm2)
 {
     return(!TypeMember.Equals(tm1, tm2));
 }
Exemplo n.º 5
0
 public static bool Equals(TypeMember tm1, TypeMember tm2)
 {
     return(object.ReferenceEquals(tm1, tm2) || (!object.ReferenceEquals(tm1, null) && !object.ReferenceEquals(tm2, null) && (tm1.type == tm2.type && tm1.member == tm2.member)));
 }
Exemplo n.º 6
0
 public override bool Equals(object obj)
 {
     return(obj is TypeMember && TypeMember.Equals(this, (TypeMember)obj));
 }