By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,673 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,673 IT Pros & Developers. It's quick & easy.

What does m_ represent?

P: n/a
A class? A method?
I need an explanation regarding which context this naming convention
may be used and any alternative representations please...

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

LaGarde StoreFront 5 Affiliate: e-Commerce Software Development
SEE: http://www.storefront.net/default.as...RER=-201499070
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
clintonG <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote:
A class? A method?
I need an explanation regarding which context this naming convention
may be used and any alternative representations please...


Usually it means "member". So, for instance you might have:

public class Test
{
string m_name

public Test (string name)
{
m_name = name;
}
}

It allows you to distinguish between local fields and member fields.
Personally I prefer to do that by keeping methods short enough to avoid
confusion in the first place.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 13 '05 #2

P: n/a
m_ should be a prefix to help describe a variable as a
member. would have to see the code to know for sure.
-----Original Message-----
A class? A method?
I need an explanation regarding which context this naming conventionmay be used and any alternative representations please...

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
LaGarde StoreFront 5 Affiliate: e-Commerce Software Development SEE: http://www.storefront.net/default.asp? REFERER=-201499070

.

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.