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
精彩评论