C# 12 introduces collection expressions! 🎉 Declaring arrays, lists & spans is now simpler & cleaner with a unified syntax. Combine collections easily using the `..` spread operator. Less code, more readability! 🧼📦 #CSharp12 #DotNet #CleanCode
C# 12 introduces collection expressions! 🎉 Declaring arrays, lists & spans is now simpler & cleaner with a unified syntax. Combine collections easily using the `..` spread operator. Less code, more readability! 🧼📦 #CSharp12 #DotNet #CleanCode
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/
🚀 Dive into Chapter 5 of my #CSharp12 and #DotNET8 network programming book online! Master multithreading and parallelization to supercharge your network programming. Boost performance and efficiency, and unlock the power of modern processors! 📷 #dotnet #csharp #techskills https://csharp-networking.com/chapter05/
🚀 Dive into Chapter 5 of my #CSharp12 and #DotNET8 book online! Master multithreading and parallelization to supercharge your network programming. Boost performance and efficiency, and unlock the power of modern processors! 🖥️ #dotnet #csharp #techskills https://csharp-networking.com/chapter05/
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
I've updated my C# 12 language article to align with the features that were released (in November 2023). The take-away is syntactically simpler constructors and collections, and a little bit more. See https://medium.com/young-coder/spotlight-on-c-12-238fcb75628a?sk=5531365cd68b2fbaf8dd1a79a9a3fcbd #csharp #csharp12
Talk on property based testing in #dotnet at #nordevcon 2024 accepted!
#Nordev #csharp #csharplang #csharp12 #unittest #propertybasedtesting
https://nordevcon.com/
I think I rather like this #primaryconstuctors think in #csharp #CSharp12 #dotnet8
I am very happy to announce that #sonarcloud and #sonarqube now support the upcoming #dotnet8 & #csharp12 a full week before their release!
Find out more on https://community.sonarsource.com/t/net-8-and-c-12-support/103931
🖊️ Excited to announce my upcoming book: "Practical Network Programming Using C#." Dive deep into #CSharp12 and #DotNET8, exploring everything from fundamentals to advanced networking techniques. Stay tuned for launch details! 📚💻 #NetworkProgramming
https://woodruff.dev/practical-network-programming-csharp/
Finally finished my annual writeup of upcoming #csharp features! Which ones do you think will make into the release? Extensions and roles are super cool, but do we risk adding too much cognitive load to the OOP story in C#?https://medium.com/young-coder/introducing-c-12s-future-features-dba08439c92e?sk=967395df6ddccc6f8cd4f8283892079b #dotnet #csharp12
What’s new in #CSharp12?
While still in the preview version, the C# 12 version introduces 3 new features:
1️⃣ Primary constructors for non-record classes and structs
2️⃣ Using aliases for any type
3️⃣ Default values for lambda expression parameters
More on #InfoQ: https://bit.ly/3AqHCb5