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

Method GetProperties

Source/Editor/Scripting/ScriptType.cs:1356–1369  ·  view source on GitHub ↗

When overridden in a derived class, searches for the property 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.</pa

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

Source from the content-addressed store, hash-verified

1354 /// <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>
1355 /// <returns>The member object representing the property defined for the current type that matches the specified name. Returns <see cref="ScriptMemberInfo.Null"/> if failed.</returns>
1356 public ScriptMemberInfo[] GetProperties(BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
1357 {
1358 if (_managed != null)
1359 {
1360 var managedMembers = _managed.GetProperties(bindingAttr);
1361 var members = new ScriptMemberInfo[managedMembers.Length];
1362 for (int i = 0; i < members.Length; i++)
1363 members[i] = new ScriptMemberInfo(managedMembers[i]);
1364 return members;
1365 }
1366 if (_custom != null)
1367 return _custom.GetProperties(bindingAttr);
1368 return Utils.GetEmptyArray<ScriptMemberInfo>();
1369 }
1370
1371 /// <summary>
1372 /// When overridden in a derived class, searches for the property defined for the current type using the specified binding constraints.

Callers 7

GetClassPropertiesMethod · 0.45
GetFieldsMethod · 0.45
FindDebugCommandsFunction · 0.45
CreatePropertiesMethod · 0.45
InitDefaultValuesMethod · 0.45
GetEntriesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected