C# 6.0 introduced many small and useful features that helps developers to write clean code. Couple of weeks back I delivered a session on “A lap around C# 6.0 and Visual Studio 2015 Preview”, where I talked about few new features of C# 6.0 and demonstrate how they works. I have also published multiple posts about C# 6.0 at .NET Tips site.
If you haven’t checked them out, or if you are new to C# 6.0 and wanted to know what are the new features introduced, here you go..
New way to initialize Dictionary
Two new Operators
Handle Exception in a better way
- Conditional Exception Handling – Exception Filters in C# 6.0
- Using await in a catch or finally block – in C# 6.0
Less Code Same Result
- Expression – Bodied Methods in C# 6.0
- Simplify Static Member Access – Using Statement With Static Classes in C# 6.0
No more error during string formatting
Easy and Clean Property Initialization
Hope this will give you good idea on the new features of C# 6.0
Image Credit : Rajesh R. Nair, DailyUXTips
2 comments