Home All Groups Group Topic Archive Search About
Author
22 Nov 2006 7:32 PM
Smokey Grindle
Is there a good explination of what would cause a CLS warrning in .NET 2.0
out there anywhere? like list of reasons and examples of what cause an
object or type to not be CLS complaint? thanks!

Author
23 Nov 2006 10:58 AM
Robinson
"Smokey Grindle" <nospam@dontspamme.com> wrote in message
news:Ou0KB0mDHHA.3536@TK2MSFTNGP02.phx.gbl...
> Is there a good explination of what would cause a CLS warrning in .NET 2.0
> out there anywhere? like list of reasons and examples of what cause an
> object or type to not be CLS complaint? thanks!

Google: cls+compliant

An example (c# although principles are the same)
http://www.devarticles.com/c/a/C-Sharp/Making-Your-Code-CLS-Compliant/

You can get rid of the warning with: <CLSCompliant(false)> _, or by making
the object CLS compliant ;).


Robin.