In C#, is there a way to keep a reference as a member variable in an object (like an object pointer in C++), not just as a parameter?
EDIT: How can I make a p
No. Don't forget that the argument could reference a local variable which is out of scope by the time you use the object later on. A couple of options:
It's hard to know which is most suitable without knowing more about what you're trying to achieve, but ref
is a dead-end.