ref
tells the compiler that the object is initialized before entering the function, while out
tells the compiler that the object will be initialized inside the function.
(ref
告诉编译器在进入函数之前该对象已初始化,而out
告诉编译器该对象将在函数内进行初始化。)
So while ref
is two-ways, out
is out-only.
(因此,当ref
是双向的时, out
是仅输出的。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…