PROPERTY
Auto-implemented property
Uses compiler-provided storage and accessor declarations.
Formal Syntax & Structure
csharp syntaxcsharp
public int Quantity { get; private set; }Working Example
Example Snippetcsharp
public int Quantity { get; private set; }