How to pass method parameters in c#?

studied the methods, now I have a question about using ref, out.
As I understand it, the ref can recover data from a variable, and then pass the processed data is the same variable, and this variable will change the value to something that came from the ref
But the out does not take values from variable and must be initialized in your method, and after treatment this value passes the variable and the variable is set to the value received from out
I apologize if it is not clear explained, I think that the picture will be clearer
5e9b5748644d5898847663.png
April 19th 20 at 12:46
1 answer
April 19th 20 at 12:48
Solution
Tip - open the IDE and try. Will immediately become clearer.
advice != response. Tips to write komenty - titus_Schowalter5 commented on April 19th 20 at 12:51
@titus_Schowalter5, I right now sitting with it and practiced, just want to make sure - Collin.McKenzie21 commented on April 19th 20 at 12:54

Find more questions by tags C#