次の方法で共有


コンパイラ エラー CS0683

更新 : 2007 年 11 月

エラー メッセージ

'explicitmethod' 明示的なメソッドの実装で、アクセサである 'method' を実装することはできません。

次の例では CS0683 エラーが生成されます。

// CS0683.cs
interface IExample
{
   int Test { get; }
}

class CExample : IExample
{
   int IExample.get_Test() { return 0; } // CS0683
   int IExample.Test { get{ return 0; } } // correct
}