Best of C# — November 2023
- 1
- 2
- 3
- 4
.NET Blog·3y
Announcing C# 12
C# 12 is now available and brings better developer productivity with simplified syntax and faster execution. The new features include collection expressions, primary constructors for all classes and structs, aliasing any type, and default parameters for lambda expressions. These features simplify code and improve performance. The article also mentions experimental features like the experimental attribute and interceptors.
- 5
Code Maze·3y
Event-Driven Architecture in C#
Event-driven architecture is a powerful pattern for building scalable, responsive, and loosely coupled systems. It revolves around the concept of events, which define the flow of the system. Event producers generate events, event routers decide where to send them, and event consumers react to the events. Event-driven architecture differs from request-response and pub-sub patterns. Producers in an event-driven architecture generate and send events to a messaging service like RabbitMQ or Apache Kafka.
- 6
Discover .NET·3y
Every New Feature Added in C# 12
C# 12 introduces several new features, including primary constructors, collection expressions, and ref readonly parameters. Primary constructors allow for simplified constructor syntax at the class level, collection expressions simplify array initialization, and ref readonly parameters allow for passing references to value types. Other features mentioned include default lambda parameters, alias any type, inline arrays, the experimental attribute, and interceptors.
- 7