+ 1

what are the ways of passing parameters to a method in c#?

20th Oct 2016, 7:01 AM
poool
2 Answers
+ 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.
20th Oct 2016, 10:14 AM
Lara
Lara - avatar
0
pass by reference or pass by value copy
21st Oct 2016, 4:54 AM
yungcheda
yungcheda - avatar