Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error CS0754

Visual Studio 2008

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;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.