Groups | Blog | Home
all groups > dotnet clr > december 2003 >

dotnet clr : CLS naming conventions


Edward Diener
12/15/2003 7:45:49 PM
Does anyone know the correct naming conventions for CLS compliant code ? The
doc points to a really obscure and difficult to digest document on the web
about Unicode names, and I am looking for simpler rules that tell me what
names are CLS compliant. Here are some simple questions:

1) Can a CLS compliant name start with an underscore ?
2) Is there a limit to the length of a CLS complaint name ? With a full
namespace name ?

Brad Abrams [MSFT]
1/8/2004 9:12:38 AM
Yes, I share your concern about that unicode standard.
The simplist way to look at it is that we made the C# and
VB indentifer rules match up with the CLS... so you can
just look at those language specifications. They may be
easier to read.

To answer your question: Yes, underscore is allowed and
yes any length of unicode string is allowed, but I have
been told some compilers have a limit, but techincally
this is in violation of the CLS -- and not to mention
hard for developers!


[quoted text, click to view]
AddThis Social Bookmark Button