title: "Expected class, delegate, enum, interface or struct" error on public static string MyFunc(). What's an alternative to "string"?
body: <p>I'm getting an error when I attempt to use the following static function.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Expected class, delegate, enum, interface, or struct</p>
  </blockquote>
  
  <p>Function (and class):</p>
  
  <pre><code>namespace MyNamespace
  {
      public class MyClass
      {
          // Some other static methods that use Classes, delegates, enums, interfaces, or structs
  
          public static string MyFunc(string myVar){
              string myText = myVar;
              //Do some stuff with myText and myVar
              return myText;
          }
      } 
  }
  </code></pre>
  
  <p>This is causing the compiler to angrily (in red) underline the string part of <code>public static string</code>.</p>
  
  <p>So, I assume this means <code>string</code> is not a class, delegate, enum, interface, or struct. </p>
  
  <p><strong>What can I use instead of <code>string</code> to return a string or string-like object?</strong> There doesn't appear to be a <code>String</code> (capital S) class in C#. </p>
  
  <p><strong>Edit</strong>: Bracket mis-match with some commented code - the above code works correctly, my actual mis-matched code didn't. Thanks!</p>