public override bool Equals(object o)
        {
            var other = o as InheritedMethodInfo;

            return(other != null &&
                   UnderlyingMethod.Equals(other.UnderlyingMethod) &&
                   ReflectedType.Equals(other.ReflectedType));
        }
        public override bool Equals(object o)
        {
            var other = o as ProjectingMethodInfo;

            return(other != null &&
                   Projector == other.Projector &&
                   UnderlyingMethod.Equals(other.UnderlyingMethod));
        }
예제 #3
0
 public override bool Equals([NotNullWhen(true)] object?o)
 {
     return(o is ProjectingMethodInfo other &&
            Projector == other.Projector &&
            UnderlyingMethod.Equals(other.UnderlyingMethod));
 }
예제 #4
0
 public override bool Equals([NotNullWhen(true)] object?o)
 {
     return(o is InheritedMethodInfo other &&
            UnderlyingMethod.Equals(other.UnderlyingMethod) &&
            ReflectedType.Equals(other.ReflectedType));
 }