How do I assign by “reference” to a class field in C#?
As others have noted, you cannot have a field of “ref to variable” type. However, just knowing that you cannot do it is probably unsatisfying; you probably also want to know first, why not, and second, how to get around this restriction. The reason why is because there are only three possibilities: 1) Disallow fields … Read more