Share via


CLS Compliance checking in Visual J# .NET 2005

In Visual J# .NET 2005, the compiler does automatic CLS Compliance checking. This is especially useful when developers want to write libraries usable from multiple languages.

The CLS rules standardize things such as data types and how objects are exposed and interoperate. For a framework to be usable from multiple languages it is essential that it conforms to these rules. If a component uses only CLS features in the API it exposes to other code (including derived classes), the component is guaranteed to be accessible from any programming language that supports the CLS. Components that adhere to the CLS rules and use only the features included in the CLS are said to be CLS-compliant components. Developers can now choose to have the J# compiler automatically check for such compliance.

Comments

  • Anonymous
    October 10, 2005
    Any pointer to the complete list of CLS rules for Whidbey CLR?
  • Anonymous
    October 13, 2005
    Though there is no specific list that I am aware of you may be intrested in reading more about it at Brad Abrams blog here - http://blogs.msdn.com/brada/archive/2004/03/20/93341.aspx