Compiler Error CS1722
Base class 'class' must come before any interfaces
When specifying a class to inherit from and interfaces to implement, the class name must be specified first.
The following sample generates CS1722.
// CS1722.cs
// compile with: /target:library
public class A {}
interface I {}
public class MyClass : I, A {} // CS1722
public class MyClass2 : A, I {} // OK
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.
.NET feedback
.NET is an open source project. Select a link to provide feedback: