开发者

Accessor does not have implementation?

I get the following error:

Error 1 Method 'DoFoo' in type 'MyNamespace.GenericFooClass_Accessor`1' from assembly 'MyLibrary, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' doe开发者_如何转开发s not have an implementation. Testing.MyLibrary

I have no idea what it's talking about considering the method is implemented... it isn't abstract.

public abstract class GenericFooClass<T> : IGenericFoo<T>
{
    public virtual void DoFoo() { ... }
}


Accessors are going to be deprecated and have a lot of bugs in them. The language updates require more resources to update the accessors code-generation than they will give, hence a lot of bugs.

Further Reading:

Generation of Private Accessors (Publicize) and Code Generation for Visual Studio 2010

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜