getPropertyValue

getPropertyValue(name: String): Any;

The getPropertyValue method of the Object class returns the value of the property specified in the name parameter if the property is a static property.

If the property is a dynamic property that has been initialized with a value, this value is returned. If it has not been initialized, the null value for the property type is returned.

If the name parameter does not correspond to a static or a dynamic property, an exception is raised.

The return result can be assigned to a variable of type Any or it can be converted to a specific primitive type or class if the type is known. If the property name is invalid, an exception is raised.