C#:数组参数传递问题

数组传递参数的话,如果直接传引用过去。对数组参数的操作会改变原始变量的值。如果不想影响原始变量的话,需要在函数里面定义新的局部数组变量。赋值给局部数组变量,对局部数组变量进行操作。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.
相关文章
相关标签/搜索