Each update to C# brings new features that shorten existing syntax, improve type safety or correctness, or unlock previously difficult scenarios.
But understanding these features and knowing how to apply them isn't always clear.
This site illustrates every new feature with code fragments illustrating a Before and Now so you can see exactly how code is affected. Whether you are new to C#, coming back after time away, or want to see what's new after upgrading there's something here for you.
Not sure what version of C# you can use? Check out our C# Platform Matrix.
Not yet complete
While most versions of C# are well covered the sections on tuples and pattern matching are still being worked on.
Stuck on an older platform?
Refer to these fragments to find out how to do something "the old way" should you be constrained to an older version of C#.
Enjoy!