Refactor your code with default lambda parameters - .NET Blog
This article concludes a series on C# 12, highlighting "default lambda parameters" which simplify expressing default values in lambdas, enhancing code readability and maintainability
#CSharp12 #Charp #CodeReadability #Maintainability #Programming #DotNet #SoftwareDevelopment
https://devblogs.microsoft.com/dotnet/refactor-your-code-with-default-lambda-parameters/
Small C#12 change everyone missed.
C#12 brings few changes to the language. Primary constructor, collection expressions, alias any type and so on. But there's one small change that almost no one is talking about.
Previously, for an empty record we could use really short notation like `record MyRecord;` - that's it what was needed by the language. But it was not working for classes, structs or interfaces. You would still need to add the curly brace - twice (opening & closing one). C# 12 bridges that gap and now you can use this minimal form for all the types 👇.
#dotnet #language #csharp12
---
If you find this useful, consider giving a like & share ❤.
ICYMI, ReSharper and Rider introduced #interceptor inlay hints. 🤙 A nice way to stay informed about intercepted method calls, especially in #AOT projects. Navigation included! 🗺️
Learn more in my latest blog post!
#dotnet #csharp #csharp12
https://blog.jetbrains.com/dotnet/2024/01/16/interceptors-using-csharp-12-in-rider-and-resharper/?utm_medium=social&utm_source=mastodon&utm_campaign=interceptors-using-csharp-12-in-rider-and-resharper
Exciting updates in #CSharp12!
From collection expressions to primary constructors for all classes and structs, syntax to alias any type, and more.
Head over to #InfoQ for details: https://bit.ly/3QOmPWJ
As part of the .NET 8 launch, on November 14th Microsoft unveiled the new features of C# 12, the latest version of the popular .NET programming language. As announced the most notable improvements include collection expressions, primary constructors for all classes and structs, syntax to alias any type, and default parameters for lambda expressions.