【发布时间】:2021-05-20 02:01:42
【问题描述】:
base = { base: 'base', prop: '897070980989'}; ingr_mapArray.push(base); protien = { protein: 'protein', prop: '452341342453'}; ingr_mapArray.puh(protein);
我想在 C# 中获取 ingr_mapArray。并希望存储在 List 中。我怎样才能得到这个数组?
【问题讨论】:
-
对于
List<'Ingrediants>,您需要类Ingrediants。 base 和 protien 对象都有不同的字段。为了使它成为一个类,他们需要相同的字段
标签: javascript c# asp.net-mvc web-applications