简单点说,IList<T>直接转换为List<T>可以不用考虑。
IList<T>可以用至少2种方式简单的复制成List<T>:
1、IList<T>.ToList()
 

2、new List(IList<T>) 
IList<T> inter;
List<T> result = new List<T>(inter);


IEnumerable<ProductView> 初始化
Enumerable.Empty<ProductView>()

相关文章:

  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2021-10-31
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
相关资源
相似解决方案