LANGUAGE

field-backed property

C# 14 contextual keyword for accessing synthesized property backing storage.

Formal Syntax & Structure

csharp syntaxcsharp
public int Quantity { get; set => field = value; }

Working Example

Example Snippetcsharp
// Documentary fragment; supply surrounding declarations as needed.public int Quantity { get; set => field = value; }
C# & .NET Reference