'member': CLS-compliant interfaces cannot have non CLS-compliant members
In a module marked with [assembly:CLCSompliant(true)]
, an interface contains a member marked with [CLCSompliant(false)]
. Remove one of the CLS compliance attributes.
The following sample generates CS3010:
using System; [assembly:CLSCompliant(true)] public interface I { [CLSCompliant(false)] int mf(); // CS3010 } public class C : I { public int mf() { return 1; } public static void Main() { } }