klyn.Type.getProperty
method
public getProperty(propertyName as String, notInherited as Boolean = true) as Property
Description

Method to get a specific property of the type.

Parameters
ParameterDescription
propertyNameThe name of the property to retrieve.
notInheritedIf true, only properties declared in this type are considered.
Returns

The property if found.

Throws
  • TypeError if no matching property exists.
Example
values = [10, 20]
sizeProperty = type(values).getProperty("size")
assert sizeProperty.getValue(values) == 2ul