title: c# extend String Class with static method
body: <p>I was wondering if there is a way to extend the string class with a method called GenerateRandom() which generates a random string.
  Maybe this would look like</p>
  
  <pre><code>string.CreateRandom();
  </code></pre>
  
  <p>As I have read there is no way than creating an instance of a string and then calling the extension method. Maybe there is one and you know it.</p>
  
  <p>Thanks for your help!</p>