Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            SpecializedMethod other = obj as SpecializedMethod;

            if (other == null)
            {
                return(false);
            }
            return(this.baseMember.Equals(other.baseMember) && this.substitutionWithoutSpecializedTypeParameters.Equals(other.substitutionWithoutSpecializedTypeParameters));
        }
Ejemplo n.º 2
0
        public override bool Equals(IMember obj, TypeVisitor typeNormalization)
        {
            SpecializedMethod other = obj as SpecializedMethod;

            if (other == null)
            {
                return(false);
            }
            return(this.baseMember.Equals(other.baseMember, typeNormalization) &&
                   this.substitutionWithoutSpecializedTypeParameters.Equals(other.substitutionWithoutSpecializedTypeParameters, typeNormalization));
        }
Ejemplo n.º 3
0
 IMethod IMethod.Specialize(TypeParameterSubstitution substitution)
 {
     return(SpecializedMethod.Create(this, substitution));
 }
Ejemplo n.º 4
0
 public override IMember Specialize(TypeParameterSubstitution substitution)
 {
     return(SpecializedMethod.Create(this, substitution));
 }