获取原始列表并将其转换为可为空的基元列表的最快方法是什么,例如:List<int>to List<int?>in c#
List<int>
List<int?>
简单的解决方案,创建新列表并使用foreach循环添加每个项目需要花费太多时间.
c# linq performance
c# ×1
linq ×1
performance ×1