title: In C#, string is a reference type but why it's not changing after manipulating it in another method
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1096449/c-sharp-string-reference-type">C# string reference type?</a>  </p>
  </blockquote>
  
  
  
  <p>Say, I have a string called </p>
  
  <pre><code>string sample = "Initial value";
  </code></pre>
  
  <p>After passing to a method test()</p>
  
  <pre><code>public static void Test(string testString)
  {
      testString = "Modified Value";
  }
  </code></pre>
  
  <p>If i print 'sample' after passing Test(sample), I except it should print "Modified Value".</p>
  
  <p>But its printing "Initial Value". Why is that case if string is reference type?</p>
  
  <p>But the same (expected logic), working for object. can someone please clear me?</p>