public override bool Equals(IType other) { // Compare the owner, not the substitution, because the substitution may contain this specialized type parameter recursively SpecializedTypeParameter o = other as SpecializedTypeParameter; return(o != null && baseTp.Equals(o.baseTp) && this.Owner.Equals(o.Owner)); }
public override bool Equals(object o) { IReturnType rt = o as IReturnType; if (rt == null || !rt.IsGenericReturnType) { return(false); } return(_typeParameter.Equals(rt.CastToGenericReturnType()._typeParameter)); }
public override bool Equals(IType other) { SpecializedTypeParameter o = other as SpecializedTypeParameter; return(o != null && baseTp.Equals(o.baseTp) && this.Owner.Equals(o.Owner)); }