Exemple #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));
        }
Exemple #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));
        }
Exemple #3
0
 IMethod IMethod.Specialize(TypeParameterSubstitution substitution)
 {
     return(SpecializedMethod.Create(this, substitution));
 }
Exemple #4
0
 public override IMember Specialize(TypeParameterSubstitution substitution)
 {
     return(SpecializedMethod.Create(this, substitution));
 }