3 ms·
Huh, reading from https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/ https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/ which was the first hit on Goo
by capableweb 6y ago
Huh, reading from https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/ https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/ which was the first hit on Google shows the following example:
public data class Person(string FirstName, string LastName);
It seems https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9 https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csh... is saying what you wrote above though.
Seems my previous comment was based on outdated/wrong information, I'm sorry and thanks for clarifying :)
Edit: Seems the post I wrote was published 20th May (probably written before) and that was the same date someone said the same thing as my comment here in the discussion about the "records" feature https://github.com/dotnet/csharplang/issues/39#issuecomment-631572976 https://github.com/dotnet/csharplang/issues/39#issuecomment-...
- runfaster2000 6y agoHere is a more recent update on records with the new syntax. https://devblogs.microsoft.com/dotnet/announcing-net-5-0-rc-1/#c-9-records https://devblogs.microsoft.com/dotnet/announcing-net-5-0-rc-...