Parameter is exported from a . net assembly to a type library , the array parameter is converted to a Net程序集导出到类型库时,数组参数被转换为给定类型的
Parameter is exported from a . net assembly to a type library , the array parameter is converted to an 参数的方法从. net程序集导出到类型库时,数组参数被转换为
Do not use params arrays if the array is modified by the member taking the params array parameter 如果数组由采用params数组参数的成员进行了修改,则不要使用params数组。
Consider adding the params keyword to array parameters if you expect the end users to pass a small number of elements 如果需要最终用户传递少量元素,则考虑向数组参数添加params关键字。
Parameter one - dimensional array is exported from a . net assembly to a type library , the array parameter is converted to a 参数(一维数组)的方法从. net程序集导出到类型库时,该数组参数被转换为给定类型的
For example , the following unmanaged method signature provides no information about the array parameter other than the element type 例如,除了提供元素类型外,以下非托管方法签名未提供有关数组参数的任何信息。
Keyword to a bite array parameter does not address a common scenario because developers typically do not work with individual bytes that are not already stored in a byte array 关键字添加到字节数组参数不能解决问题,因为开发人员通常不使用还未存储到字节数组中的单个字节。