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

Method GetProperty

Source/Editor/Scripting/ScriptType.cs:1377–1387  ·  view source on GitHub ↗

When overridden in a derived class, searches for the property defined for the current type using the specified binding constraints. The string containing the name of the members to get. A bitmask comprised of one or more that specify how the search is conducted.-or- Zero (<see

(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)

Source from the content-addressed store, hash-verified

1375 /// <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>
1376 /// <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>
1377 public ScriptMemberInfo GetProperty(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
1378 {
1379 if (_managed != null)
1380 {
1381 var managedMember = _managed.GetProperty(name, bindingAttr);
1382 return new ScriptMemberInfo(managedMember);
1383 }
1384 if (_custom != null)
1385 return _custom.GetMembers(name, MemberTypes.Property, bindingAttr).FirstOrDefault();
1386 return ScriptMemberInfo.Null;
1387 }
1388
1389 /// <summary>
1390 /// When overridden in a derived class, searches for the method defined for the current type using the specified binding constraints.

Callers 9

OnClickedPilotCameraMethod · 0.45
InitializeMethod · 0.45
BuildAnchorsDropperMethod · 0.45
GetAnchorEqualityMethod · 0.45
GetItemsForTypeMethod · 0.45
GetVisibleIfSourcesMethod · 0.45
GetAttributesMethod · 0.45

Calls 1

GetMembersMethod · 0.45

Tested by

no test coverage detected