title: Bool Variable and string value compare in C#
body: <p>If I declared a <code>bool isTrue = false; // init it to false</code></p>
  
  <p>and I can get the value from a <code>string strVal = T; // I assumed it is the TRUE value</code></p>
  
  <p>I heard it is not a good code style to compare string in C# like </p>
  
  <p><code>if (isTrue.tostring() == strVal) {}.</code></p>
  
  <p>Some time, I covert the the string variable to enum then I can compare it more convenient.</p>
  
  <p>Is there any good method to do it? </p>