引用System.Web.Extensions
using System.Web.Script.Serialization; var serializer = new JavaScriptSerializer(); var serializedResult = serializer.Serialize(RegisteredUsers); var deserializedResult = serializer.Deserialize<List<Person>>(serializedResult);
时间: 2024-10-07 19:30:18