引用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-12-07 13:37:21