The difference between ref and out parameters in C #

Parameters of type ref: you must assign values ​​when you pass into a method, and parameters of type out must not be assigned when they are passed in, but they must be assigned within the method. As the so-called ref has in and out, out without out must enter (must have value out)
Published 28 original articles · Like 15 · Visits 110,000+

Guess you like

Origin blog.csdn.net/z3h0a5n8g8x9i9a2o3/article/details/8804179