Function resolve
Resolve a reference, and attempt to convert to component 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 component of type T.
Parameters
Name | Description |
---|---|
T | the expected type of resolved component. |
locator | optional source of components for resolving reference |
Throws
InvalidCastException when resolved component is not of expected type.
Returns
T referenced object Wrapper!T referenced component that is not of Object subclass.