Capitalization style of methods and properties

  • Thread starter Thread starter Graham
  • Start date Start date
G

Graham

I've just started using .net, so I can use ECMA scripting across all
the sites I develop (in the browser with JScript/JavaScript, Flash
with ActionScript and server side with JScript).

However, apart from the .Net framework all the other objects and class
(including IE's DOM) are in camal case instead of pascal case.

Does anyone know if they is a way of getting round this, so I can use
the camel case with the framework, or even be able to turn case
sensitivity off?

Cheers
 
Graham said:
I've just started using .net, so I can use ECMA scripting across all
the sites I develop (in the browser with JScript/JavaScript, Flash
with ActionScript and server side with JScript).

However, apart from the .Net framework all the other objects and class
(including IE's DOM) are in camal case instead of pascal case.

Does anyone know if they is a way of getting round this, so I can use
the camel case with the framework, or even be able to turn case
sensitivity off?

VB is case insensitive and will let you use the case that you want (but the
IDE will enforce Pascal case so you will have to use an external tool to
edit your files). C# is case sensistive, so you will have to use Pascal
case. I don't know about JScript but I assume that it is case sensitive too
(like all the languages that borrowed their syntax from C).

I don't think that you should try too hard to go against the .NET
conventions because you will have to fight with the IDE if you do so. We
developped a lot of J# code (Java uses camel case) and we switched to the
..NET conventions for our own APIs.
 
Back
Top