class A<T>
{
public A(Func<int, T> retriveFunc, Func<List<T>> loadFunc)
{
}
}
class Entity
{
}
class B : A<Entity>
{
public B() : base(GetEntity,LoadEntities)
{
}
private List<Entity> LoadEntities()
{
return new List<Entity>();
}
private Entity GetEntity(int serverID)
{
return null;
}
}
为什么我会收到此错误?
&#34;无法访问非静态方法&#39; GetEntity&#39;在静态环境中&#34;