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

◆ GetPropertyCandidates()

ListBuilder< PropertyInfo > System.RuntimeType.GetPropertyCandidates ( string name,
BindingFlags bindingAttr,
Type[] types,
bool allowPrefixLookup )
inlineprivate

Definition at line 2176 of file RuntimeType.cs.

2177 {
2179 RuntimePropertyInfo[] propertyList = Cache.GetPropertyList(listType, name);
2180 bindingAttr ^= BindingFlags.DeclaredOnly;
2183 {
2184 if ((bindingAttr & runtimePropertyInfo.BindingFlags) == runtimePropertyInfo.BindingFlags && (!prefixLookup || FilterApplyPrefixLookup(runtimePropertyInfo, name, ignoreCase)) && (types == null || runtimePropertyInfo.GetIndexParameters().Length == types.Length))
2185 {
2186 result.Add(runtimePropertyInfo);
2187 }
2188 }
2189 return result;
2190 }
void Add(TKey key, TValue value)
static bool FilterApplyPrefixLookup(MemberInfo memberInfo, string name, bool ignoreCase)
static void FilterHelper(BindingFlags bindingFlags, ref string name, bool allowPrefixLookup, out bool prefixLookup, out bool ignoreCase, out MemberListType listType)

References System.RuntimeType.FilterApplyPrefixLookup(), and System.RuntimeType.FilterHelper().

Referenced by System.RuntimeType.GetMember(), System.RuntimeType.GetMembers(), System.RuntimeType.GetProperties(), and System.RuntimeType.GetPropertyImpl().