Compiler Error CS0754

A partial method may not explicitly implement an interface method.

A partial method cannot be declared as an explicit implementation of a method defined in an interface.

To correct this error

  • Remove the explicit interface qualification from the method declaration.


The following code generates CS0754:

// cs0754.cs
using System;

    public interface IF
        void Part();

    public partial class C : IF
        partial void IF.Part(); //CS0754
        public static int Main()
            return 1;

See Also


Explicit Interface Implementation (C# Programming Guide)

Partial Classes and Methods (C# Programming Guide)