CompositeInspector.typeOf

Identify the type of child field of component.

  1. TypeInfo typeOf(ComponentType component, string property)
    class CompositeInspector(ComponentType)
    const nothrow
    TypeInfo
    typeOf
    (
    ComponentType component
    ,
    in string property
    )
    if (
    isAggregateType!ComponentType
    )
  2. TypeInfo typeOf(ComponentType component)

Parameters

component ComponentType

a composite component (class, struct, assoc array etc.) containing some fields

Return Value

Type: TypeInfo

Type of field, or typeid(void) if field is not present in component

Meta