Posts tagged with "C#"

C# 14 More Partial Members: Partial Events and Partial Constructors

Jan 3, 2026

In C#, partial has long been a practical bridge between human-authored code and tool-generated code. With C# 14, that bridge gets wider: instance constructors and events can now be declared as partial members.

This article explains what “more partial members” means in C# 14, the rules that keep it predictable, and the generator-heavy scenarios it's intended to support.

Continue reading

C# 14 Extension Members: Complete Guide to Properties, Operators, and Static Extensions

Dec 29, 2025

Extension methods have been a core C# feature since version 3.0, enabling developers to add methods to types without modifying source code. With C# 14 and .NET 10, Microsoft introduces extension members—a powerful enhancement that extends beyond methods to include properties, operators, and static members.

This comprehensive guide explores how C# 14 extension members enable you to add mathematical operators to Point, create static factory properties for IEnumerable<T>, and organize extensions more elegantly than ever before.

Continue reading

C# 14 Null-conditional Assignment: Complete Guide to Elegant Null Handling

Dec 28, 2025

If you've been working with C# since the introduction of null-conditional operators in C# 6.0, you've likely appreciated how ?. and ?[] simplified null-checking when reading values. But what about writing values conditionally? That's where C# 14's null-conditional assignment comes in—and it's a nice improvement for modern C# development.

Continue reading

C# 14 Field Keyword: Simplifying Property Accessors

Dec 27, 2025

C# 14 introduces the field keyword, a contextual keyword that reshapes how we write property accessors. This feature eliminates the need for explicit backing fields while maintaining full control over property logic. Let's explore how this powerful addition simplifies C# code and improves developer productivity.

Continue reading

Page 1 of 8