C# FAQ: How make sure CSharp classes will interoperate with other .NET languages

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:FAQs
edit

How make sure C# classes will interoperate with other .NET languages?

Ensure that the C# spplication code conforms to the Common Language Specification (CLS). To help achieve compliance, add the [assembly:CLSCompliant(true)] global attribute to all C# source files. This attribute will cause the C# compiler to throw an error if a non-CLS-compliant feature is used.


Personal tools