CSharp Naming Standards: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
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..."
 
m Iwiseman moved page Naming Standards to CSharp Naming Standards
 
(No difference)

Latest revision as of 00:14, 4 July 2025

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