FIELD
const field
Defines an implicitly static compile-time constant.
Formal Syntax & Structure
csharp syntaxcsharp
public const int MaxQuantity = 10;Working Example
Example Snippetcsharp
public const int MaxQuantity = 10;Defines an implicitly static compile-time constant.
public const int MaxQuantity = 10;public const int MaxQuantity = 10;