NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS3010

'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() {
   }
}