Function resolve
Resolve a reference, and attempt to convert to data of type T.
auto auto resolve(T)
(
RuntimeReference reference,
Locator!() locator
);
auto auto resolve(T)
(
RuntimeReference reference,
Locator!() locator
)
if (is(T == interface));
auto auto resolve(T)
(
RuntimeReference reference,
Locator!() locator
)
if (!is(T == interface));
auto ref Z resolve(T, Z)
(
auto ref Z reference,
Locator!() locator
)
if (!is(Z : RuntimeReference));
Resolve a reference, and attempt to convert to data of type T.
Parameters
Name | Description |
---|---|
T | the expected type of resolved data. |
locator | optional source of data for resolving reference |
Throws
InvalidCastException when resolved data is not of expected type.
Returns
T referenced object Wrapper!T referenced data that is not of Object subclass.