它的一个组件上有一个只接受ThirdPartyList<T>(IList<T> items)的属性,但在我将要设置该属性时,我只有一个IEnumerable。我可以通过查看第一个项目并使用反射来确定IEnumerable中的类型,IEnumerable中的所有项目都将是相同的类型,但问题是如何将该类型转换为新的ThirdPartyList<what do I
System.NotSupportedException: The 'TypeAs' expression with an input of type 'System.Collections.Generic.IEnumerable`1' and a check of type 'System.Collections.Generic.List`1' is not supported.更新 List<QuestionViewModel> resu