Re: c# vb.net by Markus
Markus
Fri Dec 12 01:10:38 CST 2003
> I having been using vb.net for sometime. I have a project
> for a PPC and have decided started using c# and have
> noticed that it is case senstive.
>
> Can somebody please explain the rules for this. As do not
> know when to use capitals and when not.
aint no rules, it's all about style...
there are different official styles, one of the most common is to use the
type of the variable, then start the name of the var with a cap, if the var
contains more words, start each word with a cap.
example:
int iMyInteger;
long lMyLong;
strings usually start with s or sz.
others prefer to use all lower case vars. but most use a prefix for global
vars, usually something like m_
example:
int m_imyglobalvar;
int m_iMyGlobalVar;
however, that's all about style and you have to find out wich you prefer.
but mixing styles wouldn't look good.
markus dresch (www.palmside.com)