CSharp Naming Standards
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
|