original

Identify the original type of converted component.

Identify the original type of converted component. The object will be downcasted to OriginalTypeAware interface and if it succeeded original type will be returned. For non-object components typeid(void) will be returned as no OriginalTypeAware they could implement.

  1. const(TypeInfo) original(T object)
    @trusted nothrow @nogc pure
    const(TypeInfo)
    original
    (
    T
    )
    ()
    if (
    is(T : Object) ||
    is(T : const Object)
    ||
    is(T : immutable Object)
    )
  2. TypeInfo original(T component)
  3. TypeInfo original(T typeinfo)
  4. const(TypeInfo) original(T typeinfo)
  5. immutable(TypeInfo) original(T typeinfo)
  6. const(TypeInfo) original(T object, TypeInfo from)

Parameters

object T

converted component for which original type would need to be identified.

Return Value

Type: const(TypeInfo)

TypeInfo of original type from which current one was converted.

Meta