在返回的方法内
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;}