Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS0524
Collapse the table of content
Expand the table of content

Compiler Error CS0524

'type' : interfaces cannot declare types

An interface cannot contain a user-defined type.

The following sample generates CS0524:

// CS0524.cs
namespace x
{
   public interface clx
   {
      public class cly   // CS0524, delete user-defined type
      {
      }
   }
}
Show:
© 2015 Microsoft