title: C# replace string in string
body: <p>Is it possible to replace a substring in a string without assigning a return value?</p>
  <p>I have a string:</p>
  <pre><code>string test = &quot;Hello [REPLACE] world&quot;;
  </code></pre>
  <p>And I want to replace the substring <code>[REPLACE]</code> with something else:</p>
  <pre><code>test = test.replace(&quot;[REPLACE]&quot;, &quot;test&quot;);
  </code></pre>
  <p>This works fine, but how can I do it without assigning the return value to a variable?</p>
  <p>I want something like this:</p>
  <pre><code>test.replace(&quot;[REPLACE]&quot;, &quot;test&quot;);
  </code></pre>