Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0527

'type' : type in interface list is not an interface

It is possible for a struct or interface to inherit from another interface but not from any other type.

The following sample generates CS0527:

// CS0527.cs
public struct clx : int   // CS0527, int not an interface
{
   public static void Main()
   {
   }
}
Show:
© 2015 Microsoft