更新:2007 年 11 月
错误消息
“type name”不实现接口成员“member name”。“method name”无法实现接口成员,因为它是静态的。
在将静态方法隐式或显式声明为接口成员的实现时,会生成此错误。
更正此错误
- 从方法声明中移除 static 修饰符。 
- 更改接口方法的名称。 
- 重新定义包含类型,使其不从接口继承。 
示例
下面的代码生成 CS0736,因为 Program.testMethod 被声明为静态的:
// cs0736.cs
namespace CS0736
{   
    interface ITest
    {
        int testMethod(int x);
    }
    class Program : ITest // CS0736
    {
        public static int testMethod(int x) { return 0; }
        // Try the following line instead.
        // public int testMethod(int x) { return 0; }
        public static void Main() { }
    }    
}