예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj is TypeMember)
            {
                return(TypeMember.Equals(this, (TypeMember)obj));
            }

            return(false);
        }
예제 #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;
		}
예제 #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);
 }
예제 #4
0
 public static bool operator !=(TypeMember tm1, TypeMember tm2)
 {
     return(!TypeMember.Equals(tm1, tm2));
 }
예제 #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)));
 }
예제 #6
0
 public override bool Equals(object obj)
 {
     return(obj is TypeMember && TypeMember.Equals(this, (TypeMember)obj));
 }