LANGUAGE
public access modifier
Exposes a member subject to the containing type’s accessibility.
Formal Syntax & Structure
csharp syntaxcsharp
public int Quantity { get; }Working Example
Example Snippetcsharp
public int Quantity => quantity;Exposes a member subject to the containing type’s accessibility.
public int Quantity { get; }public int Quantity => quantity;