Is there something like c++ pointer in c# because I want change value of variable declared in another method. My method must return bool value but also I have to change value of string variable.
In C++ there was a pointer and I don't know how to do that in C#. I read about pointers in C# but there was something about "unsafe".
I want to avoid using global variables.