public getProperty(propertyName as String, notInherited as Boolean = true) as Property
Method to get a specific property of the type.
| Parameter | Description |
|---|---|
propertyName | The name of the property to retrieve. |
notInherited | If true, only properties declared in this type are considered. |
The property if found.
values = [10, 20]
sizeProperty = type(values).getProperty("size")
assert sizeProperty.getValue(values) == 2ul