Tag: csharp-14
9 posts
2026-02-08 csharpcsharp-14dotnet-10
C# 14 Extension Members: Extension Properties, Operators, and Static Extensions
C# 14 introduces extension members, allowing you to add extension properties, operators, and static members to existing types using the new extension keyword.
2026-02-08 csharpcsharp-14dotnet-10
C# 14 Null-Conditional Assignment: Using ?. and ?[] on the Left Side
C# 14 extends null-conditional operators to work on the left-hand side of assignments, eliminating verbose null checks when setting properties or indexers.
2026-01-10 csharp-14csharpdotnet
Microsoft `mcp`: Wiring Model Context Protocol Servers from C# on .NET 10
How to wire Model Context Protocol (MCP) servers in C# on .NET 10 using microsoft/mcp. Covers tool contracts, input validation, auth, observability, and production-readiness patterns.
2025-04-09 csharp-14csharpdotnet
C# 14: Simplified parameters with modifiers in lambdas
C# 14 allows using ref, out, in, scoped, and ref readonly modifiers on implicitly typed lambda parameters, eliminating the need to explicitly declare parameter types.
2025-04-08 csharp-14csharpdotnet
Partial constructors and events in C# 14
C# 14 lets you declare instance constructors and events as partial members, splitting definitions across files for cleaner code generation and separation of concerns.
2025-04-07 csharp-14csharpdotnet
C# 14: nameof support for unbound generic types
C# 14 enhances the nameof expression to support unbound generic types like List<> and Dictionary<,>, eliminating the need for placeholder type arguments.
2025-04-06 csharp-14csharpdotnet
Implicit Span conversions in C# 14 – First-class support for Span and ReadOnlySpan
C# 14 adds built-in implicit conversions between Span, ReadOnlySpan, arrays, and strings, enabling cleaner APIs, better type inference, and fewer manual AsSpan() calls.
2025-04-05 csharp-14csharpdotnet
C# 14 – The field keyword and field-backed properties
C# 14 introduces the field contextual keyword for property accessors, letting you add custom logic to auto-properties without declaring a separate backing field.
2024-12-01 csharp-14csharpdotnet
What’s new in C# 14.0
A summary of all new features in C# 14.0, including the field keyword, extension members, null-conditional assignment, implicit span conversions, and more.