Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the correct casing convention for C# local and instance variables? [closed]

There are a lot of former Java developers at my company who use camel casing in C# for both of these. What casing is most widely accepted / used for C#?

like image 969
merlin2011 Avatar asked Dec 06 '22 15:12

merlin2011


1 Answers

Here is the Microsoft Conventions

enter image description here

Here is the full MSDN conventions

And here are the internal guidelines via Brad Abrams (covers just about everything, not just the highlights)

like image 125
Justin Pihony Avatar answered Dec 09 '22 05:12

Justin Pihony