Search code examples
c#cls-compliant

Why should I write CLS compliant code?


I've found a lot of pages about CLS compliance.

I've understood that CLS compliance:

Many peolple write that "if you write code, you should write it CLS compliant." But as far I can read, there is no reason to use CLS compliance in generic software.

Am I right, or did I miss something?


Solution

  • If you write a library or framework it makes sense to ensure your library can be used from any CLR language.