title: How to initialize a StringBuilder to null
body: <p>Hi all I am facing a problem with <code>StringBuilder</code>. While automating, I will assign the value of <code>testfailed</code> to a <code>StringBuilder</code> as</p>
  
  <pre><code>private StringBuilder testFailed = new StringBuilder();
  
  public void Test1()
  {
      testFailed = SomeTest();
  }
  
  public void Test2()
  {
      testFailed = null;
  
      //testFailed = testFailed.Clear();
      //testFailed = new StringBuilder();
  
      testFailed = someTest1();
  }
  </code></pre>
  
  <p>When ever first test fails, the testFailed <code>StringBuilder</code> will append the next test result or if test passes then <code>testFailed</code> string will display the testFailed b result value. As I used commented methods and tried it didn't work for that. Let me know any other ways. Thanks in advance.</p>