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 operator!=(TypeMember tm1, TypeMember tm2)
 {
     return(!TypeMember.Equals(tm1, tm2));
 }