Answer the question
In order to leave comments, you need to log in
Write ref in C#?
I remember exactly that in one of the announcements of the next version of C #, it slipped that now it is not necessary to write ref when passing parameters, that is, you can write like this:
void Test(ref int n) {}
void Action
{
int n = 4;
Test(n); // вместо Test(ref n)
}
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