Example #1
0
            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));
            }
Example #2
0
        public override bool Equals(object o)
        {
            IReturnType rt = o as IReturnType;

            if (rt == null || !rt.IsGenericReturnType)
            {
                return(false);
            }
            return(_typeParameter.Equals(rt.CastToGenericReturnType()._typeParameter));
        }
Example #3
0
            public override bool Equals(IType other)
            {
                SpecializedTypeParameter o = other as SpecializedTypeParameter;

                return(o != null && baseTp.Equals(o.baseTp) && this.Owner.Equals(o.Owner));
            }