Esempio n. 1
0
        public string SerializeMarshall <T>(T t)
        {
            //create an optimized Json converter for type
            global::Jsonics.IJsonConverter <T> json_converter = global::Jsonics.JsonFactory.Compile <T>();

            return(json_converter.ToJson(t));
        }
Esempio n. 2
0
        public T DeserializeUnmarshall <T>(string text)
        {
            //create an optimized Json converter for type
            global::Jsonics.IJsonConverter <T> json_converter = global::Jsonics.JsonFactory.Compile <T>();

            return(json_converter.FromJson(text));
        }