+ 1
what are the ways of passing parameters to a method in c#?
2 ответов
+ 7
you can do it by passing by referance or without it.
If you pass it not by referance the method will use the copy of the argument and when the function is over the initial value of the argument would not be affected. When you pass it by referance it takes the value of the argumnet and chages it.
0
pass by reference or pass by value copy