internal EventInfo LookupEvent(string name) { Debug.Assert(UnderlyingType != null, "Caller should check for UnderlyingType == null"); // In case of shadowing, Type.GetEvent returns the most derived Event EventInfo ei = UnderlyingType.GetEvent(name, AllProperties_BF); if (ei != null && IsPrivate(ei)) { ei = null; } return(ei); }