zxenh <zx***@yahoo.com> wrote:
I am writing a class that has to take string (by reference) from the
user and maintain it real-time. So, I used a ref parameter in
the constructor. However, i cannot find a way to make the string
reference global in the class. Please help me with this.
You can't. What you *could* do is either use a StringBuilder instead,
or write your own class that keeps a string reference inside it, so
that you could change which string reference it had appropriately.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too