////试题信息/////
// 已知
// h、d两个数组分别表示表头和内容
// 要求
// 编写函数一:rs2Array
// 返回一个数组,每一项为一个对象。
// 编写函数二:rs2MultiHash
// 返回一个对象,内容是键值对。
////
using System;
using System.Collections.Generic;
public class test_02_quiz
{
static void Main(string[] args)
{
List<String> tmp, h = new List<String>();
h.Add("id"); h.Add("name"); h.Add("region");
List<List<String>> d = new List<List<String>>();
tmp = new List<String>();
tmp.Add("100"); tmp.Add("wang"); tmp.Add("shanghai");
d.Add(t
C# 数组转json
最新推荐文章于 2023-09-22 00:22:25 发布