IronPython.Runtime.Types.ReflectedEvent.EventInfosDiffer C# (CSharp) Method

EventInfosDiffer() private method

private EventInfosDiffer ( BoundEvent et ) : bool
et BoundEvent
return bool
        private bool EventInfosDiffer(BoundEvent et) {
            // if they're the same object they're the same...
            if (et.Event.Info == this.Info) {
                return false;
            }

            // otherwise compare based upon type & metadata token (they
            // differ by ReflectedType)
            if (et.Event.Info.DeclaringType != Info.DeclaringType ||
                et.Event.Info.MetadataToken != Info.MetadataToken) {
                return true;
            }

            return false;
        }