Click here to Skip to main content
15,885,767 members
Home / Discussions / C#
   

C#

 
GeneralRe: Field Naming Pin
OriginalGriff16-Mar-16 6:41
mveOriginalGriff16-Mar-16 6:41 
GeneralMessage Removed Pin
16-Mar-16 7:52
professionalN_tro_P16-Mar-16 7:52 
GeneralRe: Field Naming Pin
jsc4217-Mar-16 23:06
professionaljsc4217-Mar-16 23:06 
GeneralRe: Field Naming Pin
OriginalGriff16-Mar-16 6:47
mveOriginalGriff16-Mar-16 6:47 
AnswerRe: Field Naming Pin
Gerry Schmitz16-Mar-16 6:45
mveGerry Schmitz16-Mar-16 6:45 
GeneralMessage Removed Pin
16-Mar-16 8:13
professionalN_tro_P16-Mar-16 8:13 
GeneralRe: Field Naming Pin
Gerry Schmitz16-Mar-16 9:08
mveGerry Schmitz16-Mar-16 9:08 
AnswerRe: Field Naming Pin
Sascha Lefèvre16-Mar-16 7:49
professionalSascha Lefèvre16-Mar-16 7:49 
MS doesn't follow their own naming conventions...

All my class members are PascalCase, all parameters/local variables are camelCase. So I don't need the this-keyword to initialize a class member from a constructor parameter and I don't use it anywhere else either. The leading underscore I only use if I happen to need an "explicit" backing field for a property.

I like it like this because: Looking at the first letter instantly tells you if it's a class member or a local identifier. No syntactically unneccessary visual this-clutter or underscore-clutter with the mentioned exception where it actually serves a purpose.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralMessage Removed Pin
16-Mar-16 8:04
professionalN_tro_P16-Mar-16 8:04 
GeneralRe: Field Naming Pin
Sascha Lefèvre16-Mar-16 8:44
professionalSascha Lefèvre16-Mar-16 8:44 
GeneralMessage Removed Pin
16-Mar-16 8:47
professionalN_tro_P16-Mar-16 8:47 
GeneralRe: Field Naming Pin
Sascha Lefèvre16-Mar-16 8:54
professionalSascha Lefèvre16-Mar-16 8:54 
GeneralMessage Removed Pin
17-Mar-16 3:34
professionalN_tro_P17-Mar-16 3:34 
GeneralRe: Field Naming Pin
OriginalGriff16-Mar-16 9:15
mveOriginalGriff16-Mar-16 9:15 
QuestionLooking for a .Net Named-Lock-Manager Pin
Sascha Lefèvre16-Mar-16 2:43
professionalSascha Lefèvre16-Mar-16 2:43 
AnswerRe: Looking for a .Net Named-Lock-Manager Pin
Gerry Schmitz16-Mar-16 5:02
mveGerry Schmitz16-Mar-16 5:02 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Sascha Lefèvre16-Mar-16 5:31
professionalSascha Lefèvre16-Mar-16 5:31 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Gerry Schmitz16-Mar-16 5:54
mveGerry Schmitz16-Mar-16 5:54 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Sascha Lefèvre16-Mar-16 7:54
professionalSascha Lefèvre16-Mar-16 7:54 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Gerry Schmitz16-Mar-16 8:31
mveGerry Schmitz16-Mar-16 8:31 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Sascha Lefèvre16-Mar-16 9:12
professionalSascha Lefèvre16-Mar-16 9:12 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Gerry Schmitz16-Mar-16 9:23
mveGerry Schmitz16-Mar-16 9:23 
GeneralRe: Looking for a .Net Named-Lock-Manager Pin
Sascha Lefèvre16-Mar-16 9:34
professionalSascha Lefèvre16-Mar-16 9:34 
QuestionHow to multiselect DataGridView rows without pressing CTRL key in c#? Pin
naouf1016-Mar-16 2:33
naouf1016-Mar-16 2:33 
AnswerRe: How to multiselect DataGridView rows without pressing CTRL key in c#? Pin
OriginalGriff16-Mar-16 3:43
mveOriginalGriff16-Mar-16 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.