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

Method GetValue

Source/Editor/Scripting/ScriptType.cs:659–666  ·  view source on GitHub ↗

Gets the member value of a specified object. The object whose member value will be returned. The member value of the specified object.

(object obj)

Source from the content-addressed store, hash-verified

657 /// <param name="obj">The object whose member value will be returned.</param>
658 /// <returns>The member value of the specified object.</returns>
659 public object GetValue(object obj)
660 {
661 if (_managed is PropertyInfo propertyInfo)
662 return propertyInfo.GetValue(obj, null);
663 if (_managed is FieldInfo fieldInfo)
664 return fieldInfo.GetValue(obj);
665 return _custom.GetValue(obj);
666 }
667
668 /// <summary>
669 /// Sets the member value of a specified object.

Callers 5

SetupMethod · 0.45
InitMethod · 0.45
TryGetValueMethod · 0.45
GetterMethod · 0.45
InitializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected