public static attributeAnnotationCount(typeName as String, attributeName as String) as Int:
Returns the number of annotations on a reflected attribute.
| Parameter | Description |
|---|---|
typeName | Reflected type name. |
attributeName | Attribute name. |
Annotation count.
import klyn.reflection
print(TypeLoader.attributeAnnotationCount("User", "_id"))