Answer the question
In order to leave comments, you need to log in
Ways to pass parameters to c# methods?
studied the parameters of the methods, now I have a question about passing using ref, out.
As I understand it, ref can take data from a variable, and then transfer the processed data to the same variable, and this variable will change its value to the one that came from ref
But out does not take values from a variable, but must be initialized in its own method, and after processing this value, transfers it to a variable and the variable is assigned the value received from out
I apologize if I did not explain clearly, I think that the picture will be clearer
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question