CSharp Naming Standards

From bibbleWiki
Revision as of 23:42, 3 July 2025 by Iwiseman (talk | contribs) (Created page with "=Introduction= I guess I run with whatever the linter tells me but wanted to capture '''a way''' here =Naming Standards= Here we go {| class="wikitable" ! Type !! Convention !! Example |- | Parameters || camelCase || <code>string actorId</code> |- | Local variables || camelCase || <code>var firstName = "John";</code> |- | Private fields || _camelCase || <code>private string _serverAddress;</code> |- | Properties || PascalCase || <code>public string ServerAddress { get; s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

I guess I run with whatever the linter tells me but wanted to capture a way here

Naming Standards

Here we go

Type Convention Example
Parameters camelCase string actorId
Local variables camelCase var firstName = "John";
Private fields _camelCase private string _serverAddress;
Properties PascalCase public string ServerAddress { get; set; }
Methods PascalCase public void GetActor()
Classes PascalCase public class DvdRentalClientServiceImpl