Beispiel #1
0
        public static object DeserializeObject(string genxyString)
        {
            if (string.IsNullOrEmpty(genxyString))
            {
                return(null);
            }

            using (var reader = new GenxyReader(new StringReader(genxyString)))
            {
                return(reader.ReadValue());
            }
        }
Beispiel #2
0
        public static Dictionary <string, object> Deserialize(string genxyString)
        {
            if (string.IsNullOrEmpty(genxyString))
            {
                return(new Dictionary <string, object>());
            }

            using (var reader = new GenxyReader(new StringReader(genxyString)))
            {
                return(reader.ReadDictionary());
            }
        }