What is the value of System.CLSCompliantAttribute?

I read this article http://msdn.microsoft.com/en-us/library/system.clscompliantattribute.aspx and would like to understand its real meaning.

When should you make it false?

Also, what are the pitfalls that don't mark it explicitly?

I basically ask this question because of a design warning you can read here ... http://msdn.microsoft.com/en-us/library/ms182156.aspx

I want to understand how โ€œnot marking a library complaintโ€ will negatively affect me.

+6
source share
1 answer

C # supports some features that are not compatible with CLS, including pointers, unsigned numeric types, public names, which differ in each case and others.

Public elements exposing such functions should not be [CLSCompliant(true)] .

+6
source

Source: https://habr.com/ru/post/906999/


All Articles