コード例 #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());
        }
コード例 #2
0
 public bool Equals(QualifiedMemberName other)
 {
     return(DefiningType.Equals(other.DefiningType) && Signature.Equals(other.Signature));
 }