A kata that helps you practice and discover the new language features of C# 7
Kata originally were teaching and training methods by which successful combat techniques were preserved and passed on. Practicing kata allowed a company of persons to engage in a struggle using a systematic approach, rather than as individuals in a disorderly manner. source
In this Kata we will learn how to use new features from C# 7 such as out variables
, ValueTuples
, Pattern Matching
, ref locals and returns
, Local Functions
, expression-bodied members
, throw Expressions
, Generalized async return types
, and Numeric literal syntax improvements
. Make sure to visit the links below for some really great content that will help you navigate these katas.
Note: All kata directions will be found in each of the corresponding .cs files.
- Visual Studio 2017 (any edition) OR .NET Core CLI + any code editor (Visual Studio Code, etc.)
- Understanding of .NET Framework
- Understanding of C#
- The csharp-seven-kata project contains classes covering each language feature area.
- Using your preferred editor, follow the kata instructions in each class to learn how to use each new language feature.
- Run the tests to verify success!
- Visual Studio 2017
- Test Explorer > Run All
- .NET Core CLI
- Navigate to
\csharp-seven-kata\csharp-seven-kata-tests\
dotnet restore
(first time)dotnet test
- Navigate to
- Visual Studio 2017
- All unit tests are green
- All code has been converted to use the new syntax
The solution branch has not been created yet.