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()); }
public bool Equals(QualifiedMemberName other) { return(DefiningType.Equals(other.DefiningType) && Signature.Equals(other.Signature)); }