CovariantCast()

System::CovariantCast(const From&) function

Performs covariant cast from some object to covariant interface which it implements.

template<class From,class To> auto System::CovariantCast(const From &from)

Template parameters

ParameterDescription
FromType of the interface to cast from.
ToType of the interface to cast to.

Arguments

ParameterTypeDescription
fromconst From&Object that implements interface of type From to cast from.

Return Value

Proxy adapter that implements To interface and stores from object inside

See Also