title: How to declare a C# Record Type?
body: <p>I read <a href="https://www.codeproject.com/Articles/1131035/New-Features-of-Csharp" rel="nofollow noreferrer">on a blog</a> that C# 7 will feature record types</p>
  
  <pre><code>class studentInfo(string StudentFName, string StudentMName, string StudentLName);
  </code></pre>
  
  <p>However when I tried it, I get these errors </p>
  
  <blockquote>
    <p>CS0116    A namespace cannot directly contain members such as fields or
    methods<br>
    CS1022    Type or namespace definition, or end-of-file expected<br>
    CS1514    { expected</p>
  </blockquote>
  
  <p>How is this supposed to work?</p>
  
  <p><strong>Update: it's a feature of C# 9</strong>
   <a href="https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/" rel="nofollow noreferrer">https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/</a></p>