How to return a reference to a string in c#?
<p>I am looking to write a function like </p>

<pre><code>ref String TestIt( int index )
{
return this.TestArray[index];
};
</code></pre>

<p>so that I could write code like:</p>

<pre><code>MyClass.TestIt(0) = "Hello World";
</code></pre>

<p>My goal is to mimic this c++ declaration</p>

<pre><code>CString&amp; MyClass::Data( UINT index);
</code></pre>

<p>By Reference I am referring to the c++ term the Address of the variable.<br />
in other words after my call to TestIT(0)
TestArray[0]  would contain "Hello World".</p>

<p><strong>EDIT</strong>
I can't use an indexer because my goal is to convert a .cpp file to c# on an ongoing basis.  The closer I can mimic this c++ code, the less of a converter I have to write.</p>
