.NET Fun
1.82K subscribers
89 photos
60 videos
3 files
184 links
Let's Connect!

Linkedin: https://www.linkedin.com/in/babak-taremi

Github: https://github.com/babaktaremi

Twitter: https://twitter.com/BabakTaremi

Telegram: @bob_tm

دانلود دوره های برنامه نویسی کاملا رایگان:
@DotNetFunBot
Download Telegram
Follow #NETConf2022 Hashtag!!
C# 11 New Features!!!!

1- "Required Properties" Are Now Supported In Attributes!

2- Many new "Math Features" are added to C# 11. For generics, there is a new interface called "INumber" which gives you the power to use numbers in a "Generic Way"

3- "Default Operators" such as (+ / - *) can be overloaded. You can use checked keyword to describe that your operator should be used instead of default operator.

4- Abstract methods or properties can now be Static! This feature was first introduced in C# 10 and NET 6 as a "preview feature" but now you can take full usage of this feature in C# 11 and NET7 ! This feature was one of the most requested feature for C# 11. IParsable is a new interface which uses this new feature. One of the best things you can do with this feature is using the "Factory Pattern" (Combining Abstract Factory and Static Factory Method together)

5- Pattern Matching got improved again! Pattern Matching now supports collections (such as Arrays and Lists). Range Expressions (such as .. ) are now supported in Pattern Matching. Pattern Matching also became more clever, giving you compile errors when a specific pattern will not hit in any situation.

6- String Literals feature got updated and cleaned up in C# 11! Intelisense now supports String Indentation which can help you wrap a paragraph with multiple lines. Intelisense now can give you hints and warnings about your string literal.

#NETConf2022
.NET Fun
Follow #NETConf2022 Hashtag!!
Performance enhancements and new features in ASP NET Core 7!

1-Websocket connections now support HTTP2. HTTP3 Protocol is still available as an opt-in feature

2- Rate Limiting is now available as a new feature in ASP NET Core 7! You no longer need 3rd party libraries to use this feature. Both options ( Limiting number of concurrent requests and limiting number of requests per user) is now available!

3- Output Caching is a new feature in ASP NET Core 7! The configuration of output caching is as simple as Response Caching. Just like before, there multiple cache store options (like memory, SQL , Disk , Redis) are available. This new feature supports something called "Thundering Herd Locking" in which the cache system implements auto locks for preventing multiple clients from changing the cache too many times ( This feature will come handy in scenarios where the site or service is starting up and clients are sending burst requests and prevents the service from becoming unavailable). It also supports cache invalidation and cache revalidation ( in previous versions you had to invalidate old cache files manually , but now ASP NET Core will handle it for you by using E-Tags )

#NETConf2022