0
Is there any way you could use ref in the method but not in the call?
For example if you wanted the variable to change sometimes but not others. Or would you need two different methods for that?
4 odpowiedzi
0
sounds like you want to use pass by value. not sure tho
0
@Emmett I have no idea haha. So new to this that I'm crazy confused
0
@Al Connar just overload the method
0
Try it yourself, and you'll see that you'll get an error message if you include ref only in the definition. You would most likely need two different methods. Perhaps you could get away with a single method and named arguments, but it would not be pretty.