EntityBase是基类
IBLLBase<T> where T:EntityBase,new() 是基类接口
Test是实体类
TestBLL是接口实现类
下面是某个类里面的的索引
public IBLLBase<dynamic> this[string name]
{
  get
  {
    switch (name.ToLower())
    {
      case"test":
      return (IBLLBase<Test>)new TestBLL();
    }
    return null;
  }
}
错误:Test无法转换成dynamic类型。谁知道怎么做才能把Test转换成dynamic?
慕勒3428872
慕码人2483693