Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
C#

Fields in C#

Store private state in fields; expose via properties.

Fields in C# — a practical guide to C# fields with clear examples you can reuse in real projects.

C# Tutorial Series (55/121). Prefer one article? Read the complete C# tutorial.

Short description

Prefer private fields with underscore naming if your style guide uses it.

Field

private readonly List<string> _items = new();

Leave a reply

Your email address will not be published. Required fields are marked *