Code Listings
The following code listings are all copy-and-paste friendly.
Code Listings for C# 12 in a Nutshell
If you're running Windows, browsing the samples online is not the best way to go! Almost all of the code listings are available as interactive samples in LINQPad 8.
From LINQPad's samples TreeView (bottom left), click Download more samples and choose C# 12 in a Nutshell. All 1400 samples will then be searchable and executable from within LINQPad.
Code Listings for C# 10 in a Nutshell
If you're running Windows, browsing the samples online is not the best way to go! Almost all of the code listings are available as interactive samples in LINQPad 8 (or LINQPad 7).
From LINQPad's samples TreeView (bottom left), click Download more samples and choose C# 10 in a Nutshell. All 1300 samples will then be searchable and executable from within LINQPad.
Code Listings for C# 9 in a Nutshell
If you're running Windows, browsing the samples online is not the best way to go! Almost all of the code listings are available as interactive samples in LINQPad 8 (or LINQPad 7).
From LINQPad's samples TreeView (bottom left), click Download more samples and choose C# 9 in a Nutshell. All 1250 samples will then be searchable and executable from within LINQPad.
Code Listings for C# 8 in a Nutshell
If you're running Windows, browsing the samples online is not the best way to go! Almost all of the code listings are available as interactive samples in LINQPad 8 (or LINQPad 7).
From LINQPad's samples TreeView (bottom left), click Download more samples and choose C# 8 in a Nutshell. All 1250 samples will then be searchable and executable from within LINQPad.
Code Listings for C# 7 in a Nutshell
Code listings for Chapters 2-10, 14, 20, 22, 23 and 26 are available as interactive samples in LINQPad 5.
Go to LINQPad's samples tree view (bottom left) and click Download more samples to get all of the above chapters.