System::ObjectExt::ArrayInitializerCast method

ObjectExt::ArrayInitializerCast method

Converts array fundamental values (which C# does implicitly but C++ apparently does not).

template<typename To,typename ...> static std::enable_if<(std::is_fundamental<To>::value), std::array<To, sizeof...(From)>>::type System::ObjectExt::ArrayInitializerCast(From ...args)
ParameterDescription
ToTarget type.
FromSource types.
ParameterTypeDescription
argsFrom …Values to convert and push to target array.

ReturnValue

Array containing converted copies of all arguments in the same order.

See Also