+ 1
Difference between reference(ref) and out( passing parameter ) in C#
2 ответов
+ 2
With ref parameters, you can pass data into a method as well.
+ 1
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.
So while ref is two-ways, out is out-only.
https://stackoverflow.com/questions/388464/whats-the-difference-between-the-ref-and-out-keywords