ArrayInitializerCast()

ObjectExt::ArrayInitializerCast(From …) 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)

Template parameters

ParameterDescription
ToTarget type.
FromSource types.

Arguments

ParameterTypeDescription
argsFrom …Values to convert and push to target array.

Return Value

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

See Also