|  
 
 
System.Collections.Generic.IEnumerator`1[TEntity] GetEnumerator() 包含泛型参数 
public IEnumerator<TEntity> GetEnumerator()         {             return Execute<IEnumerator<TEntity>>(Expression.Call(Expression, (MethodInfo)MethodBase.GetCurrentMethod()));         }   
像上面这么写会报这个错误 方法 System.Collections.Generic.IEnumerator`1[TEntity] GetEnumerator() 包含泛型参数 改成这样 
C# code?public IEnumerator<TEntity> GetEnumerator()         {             return Execute<IEnumerator<TEntity>>(Expression.Call(Expression,  ((MethodInfo)MethodBase.GetCurrentMethod()).MakeGenericMethod(typeof(TEntity))));         }   
会报这个错误 System.Collections.Generic.IEnumerator`1[TEntity] GetEnumerator() 不是 GenericMethodDefinition。只能对 MethodBase.IsGenericMethodDefinition 为 True 的方法调用 MakeGenericMethod。 
Execute方法在哪里定义的。  
 |