public static typeGenericArgumentCount(typeName as String) as Int:
Returns the number of concrete generic arguments of a reflected type.
| Parameter | Description |
|---|---|
typeName | Reflected concrete type name. |
Number of concrete generic arguments.
import klyn.collections import klyn.reflection assert TypeLoader.typeGenericArgumentCount(ArrayList<Int>.type.fullName) == 1