12

Where can I find the specifications for the various C# languages?

(EDIT: it appears people voted down because you could 'google' this, however, my original intent was to put an answer with information not found on google. I've accepted the answer with the best google results, as they are relevant to people who haven't paid for VS)

user7116
  • 63,008
  • 17
  • 141
  • 172

5 Answers5

12

Microsoft's version (probably what you want)

The formal standardised versions (via ECMA, created just so they could say it was "standardised" by some external body. Even though ECMA "standards" are effectively "Insert cash, vend standard").

Further ECMA standards

Adam Wright
  • 48,938
  • 12
  • 131
  • 152
  • The Microsoft link is dead - sort of. Well it goes to a somewhat generic Developer tools page now. :( – Caltor Mar 16 '21 at 15:20
  • Hopefully this one will survive https://learn.microsoft.com/en-gb/dotnet/csharp/language-reference/language-specification – Caltor Mar 16 '21 at 15:24
11

If you have Visual Studio 2005 or 2008, they are already on your machine!

For 2005 (English):

.\Microsoft Visual Studio 8\VC#\Specifications\1033

For 2008 (English):

.\Microsoft Visual Studio 9.0\VC#\Specifications\1033

For 2010 (English):

.\Microsoft Visual Studio 10.0\VC#\Specifications\1033

For 2012 (English):

.\Microsoft Visual Studio 11.0\VC#\Specifications\1033
user7116
  • 63,008
  • 17
  • 141
  • 172
2

Found using Google:

http://msdn.microsoft.com/en-us/vcsharp/aa336809.aspx

Marc Reside
  • 2,935
  • 1
  • 24
  • 26
2

The C# language is an ISO standard and as such the specification can be had from the ISO website at: http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=42926

You can also acquire the specifications direct from Microsoft (.Doc Warning) http://download.microsoft.com/download/3/8/8/388e7205-bc10-4226-b2a8-75351c669b09/CSharp%20Language%20Specification.doc (.Doc Warning)

Wolfwyrd
  • 15,716
  • 5
  • 47
  • 67