2007年7月14日
摘要: class Program { //引用方法参数调用 static void add(ref int i) {//不用对参数进行初始化 i++; } static void Main() { int j = 0; //J在堆栈中的内存会指针给i add(ref j); Console.WriteLine(j); } }class Program { static void add(out in... 阅读全文
posted @ 2007-07-14 14:44 季沫 阅读(271) 评论(0) 推荐(0) 编辑