相关疑难解决方法(0)

在C#.NET中将两个(或更多)列表合并为一个

是否可以使用C#在.NET中将两个或多个列表转换为一个列表?

例如,

public static List<Product> GetAllProducts(int categoryId){ .... }
.
.
.
var productCollection1 = GetAllProducts(CategoryId1);
var productCollection2 = GetAllProducts(CategoryId2);
var productCollection3 = GetAllProducts(CategoryId3);
Run Code Online (Sandbox Code Playgroud)

.net c# list

219
推荐指数
7
解决办法
34万
查看次数

标签 统计

.net ×1

c# ×1

list ×1