473,425 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

module and global variable naming convention

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
Nov 23 '05 #1
3 4166
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

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Sam" <qd*@datawave.ca> wrote in message
news:e7*************@TK2MSFTNGP09.phx.gbl...
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

Nov 23 '05 #2
Sam
Thanks so lots CT

Sam

"CT" <ca******@spammersgoawayintegrasol.dk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Sam" <qd*@datawave.ca> wrote in message
news:e7*************@TK2MSFTNGP09.phx.gbl...
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


Nov 23 '05 #3
"Sam" <qd*@datawave.ca> schrieb:
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?


Naming guidelines and code conventions
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=namingconventions&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
6
by: Michael | last post by:
Hi, What is the naming convention in .NET when it comes to naming a variable like "StudentID"? Is it "StudentID" or "StudentId"? For variable like "myHtml", I know the "HTML" part must be...
8
by: bim_bom | last post by:
Hi, is there any tool to change naming convention in c++ sources? I mean something, that parses cpp and h files in my project, and it finds, what variables are there declared. I think, it should...
114
by: Jonathan Wood | last post by:
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for...
35
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
7
by: beginner | last post by:
Hi Everyone, I have encountered a small problems. How to call module functions inside class instance functions? For example, calling func1 in func2 resulted in a compiling error. "my module...
4
by: carl.dhalluin | last post by:
Hello I am completely puzzled why the following exec code does not work: mycode = "import math\ndef f(y):\n print math.floor(y)\nf(3.14)" def execute(): exec mycode execute()
6
by: teddysnips | last post by:
I've been asked to take over maintenance of a database. The client has also requested that I split the database into Front End/Back End. I've just taken delivery of the code and I've run it and it...
0
by: Jeff Dyke | last post by:
my apologies, to Fredrick, my response when solely to him. reply below, hopefully keeping thread intact. On Mon, Jul 21, 2008 at 12:28 PM, Jeff Dyke <jeff.dyke@gmail.comwrote:
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.