摘要: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
11 2017 档案
摘要: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
摘要:区别: ref会把参数值带入函数,而out会在参数进入函数时会清空自己 所以ref必须在函数使用前必须初始化,而out在函数内部使用前才需要初始化
阅读全文
posted @ 2017-11-30 09:00
|
||