David Stone's Blog

I'm open to suggestions for a subtitle here! (Really!)

CLSCompliant...is not...CLSCompliant

/*
To make an assembly CLSCompliant, you must add the CLSCompliant attribute.

To conform to CLSCompliant rules, your 3-letter mnemonics must be Pascal case.
(Only 2-character codes are all upper-case)

By adding CLSCompliant(true) attribute to your assembly you are not longer CLSCompliant because you are using a 3-letter mnemonic that is not Pascal case. (CLS)

My head hurts.
*/

Anybody care to comment?

Comments

Andy Smith said:

"To conform to CLSCompliant rules, your 3-letter mnemonics must be Pascal case"

I'm fairly certain that this is false.
Later in the thread, the guy references fxcop as his source for this.

The fxcop rule he references comes from the design guidlines, not the cls spec. it is only a suggestion.
# January 13, 2004 2:53 PM

CLSCompliant vs. ClsCompliant » hangy.de‽ said:

I was wondering about the same. :)

# March 31, 2008 4:01 AM