System::ObjectExt::ArrayInitializerCast 方法

ObjectExt::ArrayInitializerCast method

转换数组的基本值(C# 会隐式完成,但 C++ 显然不会)。

template<typename To,typename ...> static std::enable_if<(std::is_fundamental<To>::value), std::array<To, sizeof...(From)>>::type System::ObjectExt::ArrayInitializerCast(From ...args)
Parameter描述
目标类型。
From源类型。
ParameterType描述
args来自 …要转换并推入目标数组的值。

ReturnValue

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

另见