Re: underscore prefix
From: Tamir Khason (tamir-NOSPAM_at_tcon-NOSPAM.co.il)
Date: 07/05/04
- Next message: Beeeeeeeeeeeeves: "Re: C# is a proprietary programming language ??"
- Previous message: mike parr: "underscore prefix"
- In reply to: mike parr: "underscore prefix"
- Next in thread: Scott Allen: "Re: underscore prefix"
- Reply: Scott Allen: "Re: underscore prefix"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Jul 2004 11:40:41 +0300
This is olb naming convention for private variables. In new MS naming
convention you should use m_ as prefix for private members
More information can be found here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamingguidelines.asp
or use FxCop to validate
http://www.gotdotnet.com/team/fxcop/
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"mike parr" <mparr_1972@yahoo.co.uk> wrote in message
news:Oxr9EmmYEHA.3664@TK2MSFTNGP12.phx.gbl...
> A few times when looking at code on the net I have seen objects,
> variables etc prefixed by an underscore. But I've never seen any
> explanation for the reason for this. What is the reason for doing this?
>
> Thanks,
>
> Mike
>
>
>
>
>
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: Beeeeeeeeeeeeves: "Re: C# is a proprietary programming language ??"
- Previous message: mike parr: "underscore prefix"
- In reply to: mike parr: "underscore prefix"
- Next in thread: Scott Allen: "Re: underscore prefix"
- Reply: Scott Allen: "Re: underscore prefix"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|