博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年11月30日

摘要: class Program { delegate string del(int i);//自定义委托 static public Action A; static public Action B; static public Action C; static public Func fB;//第最后一个参数... 阅读全文

posted @ 2017-11-30 11:53 mistin 阅读(127) 评论(0) 推荐(0)

摘要: 区别: ref会把参数值带入函数,而out会在参数进入函数时会清空自己 所以ref必须在函数使用前必须初始化,而out在函数内部使用前才需要初始化 阅读全文

posted @ 2017-11-30 09:00 mistin 阅读(86) 评论(0) 推荐(0)