Esempio n. 1
0
        public static Mdata FindData(String json)
        {
            Mdata        deserializedData = new Mdata();
            MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json));
            DataContractJsonSerializer ser = new DataContractJsonSerializer(deserializedData.GetType());

            deserializedData = ser.ReadObject(ms) as Mdata;
            ms.Close();
            return(deserializedData);
        }