PROPERTY
Computed property
Computes a value when read instead of storing duplicate state.
Formal Syntax & Structure
csharp syntaxcsharp
public bool IsEmpty => Quantity == 0;Working Example
Example Snippetcsharp
public bool IsEmpty => Quantity == 0;Computes a value when read instead of storing duplicate state.
public bool IsEmpty => Quantity == 0;public bool IsEmpty => Quantity == 0;