title: What is the difference between string == "something" or string.Equals("something")
body: <p>In C# I have a problem in my code, when i try to write </p>
  
  <pre><code>if (string == "text") return string;
  </code></pre>
  
  <p>it does not give correct answer 
  but
  when i try to write`</p>
  
  <pre><code>if(string.Equals("text")) return string;
  </code></pre>
  
  <p>it gives me the correct answer. 
  my question is what problem is here, what is the main difference between   string == "something" or string.Equals("something") for string matching. </p>