Why should I write CLS compliant code?

Luca picture Luca · Dec 1, 2009 · Viewed 28.9k times · Source

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?

Answer

Remus Rusanu picture Remus Rusanu · Dec 1, 2009

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