MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetFields

Method GetFields

Source/Editor/Scripting/ScriptType.cs:1318–1331  ·  view source on GitHub ↗

When overridden in a derived class, searches for the fields defined for the current type using the specified binding constraints. A bitmask comprised of one or more that specify how the search is conducted.-or- Zero ( ), to return an empty item.</para

(BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)

Source from the content-addressed store, hash-verified

1316 /// <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.-or- Zero (<see cref="F:System.Reflection.BindingFlags.Default" />), to return an empty item.</param>
1317 /// <returns>The member object representing the field defined for the current type that matches the specified name. Returns <see cref="ScriptMemberInfo.Null"/> if failed.</returns>
1318 public ScriptMemberInfo[] GetFields(BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
1319 {
1320 if (_managed != null)
1321 {
1322 var managedMembers = _managed.GetFields(bindingAttr);
1323 var members = new ScriptMemberInfo[managedMembers.Length];
1324 for (int i = 0; i < members.Length; i++)
1325 members[i] = new ScriptMemberInfo(managedMembers[i]);
1326 return members;
1327 }
1328 if (_custom != null)
1329 return _custom.GetFields(bindingAttr);
1330 return Utils.GetEmptyArray<ScriptMemberInfo>();
1331 }
1332
1333 /// <summary>
1334 /// When overridden in a derived class, searches for the field defined for the current type using the specified binding constraints.

Callers 5

LoadIconsMethod · 0.45
ComboBoxMethod · 0.45
InitDefaultValuesMethod · 0.45
GetEntriesMethod · 0.45
BuildEntriesDefaultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected