Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetEvent() [2/2]

override EventInfo System.RuntimeType.GetEvent ( string name,
BindingFlags bindingAttr )
inline

Definition at line 2486 of file RuntimeType.cs.

2487 {
2488 if (name == null)
2489 {
2490 throw new ArgumentNullException("name");
2491 }
2493 RuntimeEventInfo[] eventList = Cache.GetEventList(listType, name);
2494 EventInfo eventInfo = null;
2495 bindingAttr ^= BindingFlags.DeclaredOnly;
2497 {
2498 if ((bindingAttr & runtimeEventInfo.BindingFlags) == runtimeEventInfo.BindingFlags)
2499 {
2500 if (eventInfo != null)
2501 {
2502 throw new AmbiguousMatchException(SR.Arg_AmbiguousMatchException);
2503 }
2505 }
2506 }
2507 return eventInfo;
2508 }
static void FilterHelper(BindingFlags bindingFlags, ref string name, bool allowPrefixLookup, out bool prefixLookup, out bool ignoreCase, out MemberListType listType)

References System.SR.Arg_AmbiguousMatchException, and System.RuntimeType.FilterHelper().

Referenced by System.Reflection.Emit.TypeBuilder.GetEvent().