extractTypes

Undocumented in source. Be warned that the author may not have intended to support it.
  1. string[] extractTypes()
  2. string[] extractTypes()
  3. string[] extractTypes()
    string[]
    extractTypes
    (
    T : U[K]
    U
    K
    )
    ()

Examples

It can get the type of a string

auto result = extractTypes!string;
assert(result == ["string"]);

It can get the type of a string list

auto result = extractTypes!(string[]);
assert(result == ["string[]"]);

It can get the type of a string assoc array

auto result = extractTypes!(string[string]);
assert(result == ["string[string]"]);

It can get all types of a class

interface I {}
class T : I {}

auto result = extractTypes!(T[]);

assert(result[0] == "fluentasserts.core.evaluation.__unittest_L188_C1.T[]", `Expected: ` ~ result[0]);
assert(result[1] == "object.Object[]", `Expected: ` ~ result[1] );
assert(result[2] ==  "fluentasserts.core.evaluation.__unittest_L188_C1.I[]", `Expected: ` ~ result[2] );

Meta