Пример #1
0
        public override bool Equals(object o)
        {
            var other = o as ProjectingEventInfo;

            return(other != null &&
                   Projector == other.Projector &&
                   UnderlyingEvent.Equals(other.UnderlyingEvent));
        }
Пример #2
0
 public override bool Equals([NotNullWhen(true)] object?o)
 {
     return(o is ProjectingEventInfo other &&
            Projector == other.Projector &&
            UnderlyingEvent.Equals(other.UnderlyingEvent));
 }