-1
你能幫我解決這個問題嗎?我將在名稱和描述中使用JSON,並且要合併兩個數組。C#,JSON:加入兩個數組以使用JSON
var listCateogries = categories.Select(x => new
{
Name = x.Name,
Description = x.Description
});
var listProducts = products.Select(x => new
{
Name = x.Name,
Description = x.Details
});
var data = listCateogries + listProducts;
非常感謝。
這不是JSON,這不是陣列。請了解差異。 –