ref 函数定义: swap(ref int a, ref int b); 使用: swap(ref a, ref b); out 函数定义: swap(int a,out int b); //函数内部需要对其初始化 使用: swap(a, out b); params 函数定义: function(params int[] b); //作用于一维数组 使用: int [] a; function(a);