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.

Thanks
adam

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)



Re: c# vb.net by Ginny

Ginny
Fri Dec 12 05:58:24 CST 2003

adam,

The only real rule is that whatever case you use to declare something is the
one you have to use to reference that something from then on.

As for style, most sample code you'll see uses MixedCase for method names
and public properties and camelCase for private properties and variables.
--
Ginny Caughey
.Net Compact Framework MVP

"adam" <adamdavies@go.com> wrote in message
news:05e101c3c06a$595561a0$a401280a@phx.gbl...
> 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.
>
> Thanks
> adam