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