module and global variable naming convention

S

Sam

Hi all

What's standard naming convention for module and global variables in .net?
Do we still use lower case prefix "m" for module (or class) scope and "g"
for global scope?

Regards,

Sam
 
C

CT

There are various naming/coding standards, but it seems the latest MS
standards have an _ prefix and Camel Casing for modular variables (i.e.
non-public variables). All public/global variabales use Pascal casing. So, a
variable named Test would be named like this:

Modular/class member: _test
Public/global: Test
 
S

Sam

Thanks so lots CT

Sam

CT said:
There are various naming/coding standards, but it seems the latest MS
standards have an _ prefix and Camel Casing for modular variables (i.e.
non-public variables). All public/global variabales use Pascal casing. So,
a variable named Test would be named like this:

Modular/class member: _test
Public/global: Test
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top