Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'type' : interfaces cannot declare types
An interface cannot contain a user-defined type; it should contain only methods and properties.
Example
The following sample generates CS0524:
// CS0524.cs
public interface Clx
{
public class Cly // CS0524, delete user-defined type
{
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.