This documentation is archived and is not being maintained.

Compiler Error CS3009

'type': base type 'type' is not CLS-compliant

A base type was marked as not having to be compliant with the Common Language Specification (CLS) in a module that was marked as being CLS compliant. Either remove the attribute that specifies the module is CLS compliant or remove the attribute that indicates the type is not CLS compliant.

The following sample generates CS3009:

// CS3009.cs
using System;

public class B

public class C : B   // CS3009
   public static void Main () {}

See Also

What Is the Common Language Specification