[Mono-dev] CLSCompliant attribute.

Miguel de Icaza miguel.de.icaza at gmail.com
Fri Feb 12 10:55:35 EST 2010


     Over the years, to match the various profiles in .NET we have used
conditional compilation to match the profile.    In the case of CLSCompliant
attribute we had written code like this:

#if NET_XXXX  /* New in NET_XXXX */
      [CLSCompliant (false)]
      void SomeMethod (uint foo);

    It turns out that those CLSCompliant attributes are really bug fixes
that have been done over the years.   We should stop considering those a
profile-specific feature, and instead just add the attribute if required,
regardless of the profile.

    So do not waste your time adding the ifdefs when it comes to this

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100212/5029b4a3/attachment.html 

More information about the Mono-devel-list mailing list