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)
参数描述
To目标类型。
From源类型。
参数类型描述
args来自 …要转换并推入目标数组的值。

ReturnValue

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

另见