在返回的方法内
IEnumerable<T>,
yield return必须返回
T,而不是返回
IEnumerable<T>。
更换
yield return c.GetDeepControlsByType<T>();
与:
foreach (var x in c.GetDeepControlsByType<T>()){ yield return x;}
欢迎分享,转载请注明来源:内存溢出
在返回的方法内
IEnumerable<T>,
yield return必须返回
T,而不是返回
IEnumerable<T>。
更换
yield return c.GetDeepControlsByType<T>();
与:
foreach (var x in c.GetDeepControlsByType<T>()){ yield return x;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)