Ejemplo n.º 1
0
        public override bool Equals(TypeRef other)
        {
            var otherNamed = other as NamedTypeRef;

            if (otherNamed == null)
            {
                return(false);
            }
            if (!name.Equals(otherNamed.QualifiedTypeName))
            {
                return(false);
            }
            if (arguments.Count != otherNamed.arguments.Count)
            {
                return(false);
            }
            return(!arguments.Where((t, i) => !Equals(t, otherNamed.arguments[i])).Any());
        }
Ejemplo n.º 2
0
 public bool Equals(QualifiedMemberName other)
 {
     return(DefiningType.Equals(other.DefiningType) && Signature.Equals(other.Signature));
 }