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

◆ GetNestedType() [1/2]

override Type System.RuntimeType.GetNestedType ( string fullname,
BindingFlags bindingAttr )
inline

Definition at line 2584 of file RuntimeType.cs.

2585 {
2586 if (fullname == null)
2587 {
2588 throw new ArgumentNullException("fullname");
2589 }
2590 bindingAttr &= ~BindingFlags.Static;
2591 SplitName(fullname, out var name, out var ns);
2593 RuntimeType[] nestedTypeList = Cache.GetNestedTypeList(listType, name);
2594 RuntimeType runtimeType = null;
2596 {
2598 {
2599 if (runtimeType != null)
2600 {
2601 throw new AmbiguousMatchException(SR.Arg_AmbiguousMatchException);
2602 }
2604 }
2605 }
2606 return runtimeType;
2607 }
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.GetNestedType().