在C#中,ref和out参数有什么区别?
ref
out
例:
void method1(ref int p1) { //.... } void method2(out int p2) { //.... }
另外,每种方法的使用指南是什么?
c# parameters
c# ×1
parameters ×1