C # Ref and Out difference

ref there is a feed (feed for an assignment, the internal can be modified, and the value of the function after the modification will be retained)

And out is out without (external evaluation even if, it will not pass in the function, the compiler will not prompt the initialization parameter must be assigned within the function, as revised and Ref parameters, its value will be retained)

Guess you like

Origin www.cnblogs.com/xgzhen105/p/11137203.html