在托管数组中不允许使用指针算法。
下面的示例演示如何向托管函数传递非托管数组。
The following example demonstrates passing an unmanaged array to a managed function.
在托管代码中,数组是包含一个或多个相同类型元素的引用类型。
An array is a reference type in managed code that contains one or more elements of the same type.
一定不要使用托管库的公共只读数组字段来定义应用程序的边界行为或安全性,因为公共只读数组字段可以被修改。
Never use read-only public array fields from managed libraries to define the boundary behavior or security of your applications because read-only public array fields can be modified.
一定不要使用托管库的公共只读数组字段来定义应用程序的边界行为或安全性,因为公共只读数组字段可以被修改。
Never use read-only public array fields from managed libraries to define the boundary behavior or security of your applications because read-only public array fields can be modified.
应用推荐