更新:2007 年 11 月
错误消息
条件成员“member”无法在类型“Type Name”中实现接口成员“base class member”下面的示例生成 CS0629:
// CS0629.cs
interface MyInterface
{
   void MyMethod();
}
public class MyClass : MyInterface
{
   [System.Diagnostics.Conditional("debug")]
   public void MyMethod()    // CS0629, remove the Conditional attribute
   {
   }
   public static void Main()
   {
   }
} | |