参考链接:Object to Generic List<> cast (microsoft.com)

IList objList = (IList)objData;  
int count = objList.Count; // The LINQ conversions will lose this information  
IEnumerable<IMyInterface> list = objList.Cast<IMyInterface>(); 

 

相关文章:

  • 2021-05-29
  • 2021-06-15
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案