示例#1
0
        public List <BaseObject> JsonSerialize(ApplicationDataContext applicationDataContext)
        {
            JsonFactory    factory               = new JsonFactory("Json");
            JsonSerializer serializer            = (JsonSerializer)factory.CreateSerializer();
            string         jsonSerealizedObjects = serializer.Serialize(applicationDataContext.Objects);

            return(serializer.Deserialize(jsonSerealizedObjects));
        }