标签:tracking lease nal release 之间 article 赋值 tis pos
(1) 两者都是按地址传递的,使用后都将改变原来的数值
(2) ref传进去的參数必须在调用前初始化,out不必(5) ref是有进有出,out是仅仅出不进
string outString = "This is the original outString";
Console.WriteLine(outString);
outMethod(out outString);
Console.WriteLine(outString);
string refString = "This is the original ref string";
Console.WriteLine(refString);
refMethod(ref refString);
Console.WriteLine(refString);
标签:tracking lease nal release 之间 article 赋值 tis pos
原文地址:https://www.cnblogs.com/ldxsuanfa/p/9938568.html