[Solved] Does c#’s ref copy and how to prevent it? [duplicate]
The ref keyword is used to pass an argument by reference, not value. The ref keyword makes the formal parameter alias for the argument, which must be a variable. In other words, any operation on the parameter is made on the argument. For example: void Method(ref int refArgument) { refArgument = refArgument + 44; } … Read more