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

◆ GetInterface() [1/2]

override Type System.RuntimeType.GetInterface ( string fullname,
bool ignoreCase )
inline

Definition at line 2553 of file RuntimeType.cs.

2554 {
2555 if (fullname == null)
2556 {
2557 throw new ArgumentNullException("fullname");
2558 }
2559 BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.NonPublic;
2560 bindingFlags &= ~BindingFlags.Static;
2561 if (ignoreCase)
2562 {
2563 bindingFlags |= BindingFlags.IgnoreCase;
2564 }
2565 SplitName(fullname, out var name, out var ns);
2567 RuntimeType[] interfaceList = Cache.GetInterfaceList(listType, name);
2568 RuntimeType runtimeType = null;
2570 {
2572 {
2573 if (runtimeType != null)
2574 {
2575 throw new AmbiguousMatchException(SR.Arg_AmbiguousMatchException);
2576 }
2578 }
2579 }
2580 return runtimeType;
2581 }
static void SplitName(string fullname, out string name, out string ns)
static void FilterHelper(BindingFlags bindingFlags, ref string name, bool allowPrefixLookup, out bool prefixLookup, out bool ignoreCase, out MemberListType listType)
static bool FilterApplyType(Type type, BindingFlags bindingFlags, string name, bool prefixLookup, string ns)

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

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