예제 #1
0
        public static DataSet DeepClone(this DataSet ds)
        {
            DataSetStructure dss  = new DataSetStructure();
            string           json = dss.Serialize(ds);

            return(dss.Deserialize(json));
        }
예제 #2
0
        public static string ToJSON(this DataSet ds)
        {
            DataSetStructure dss        = new DataSetStructure();
            string           serialized = dss.Serialize(ds);

            return(serialized);
        }
예제 #3
0
        public static DataSet ToDataSet(this string json)
        {
            DataSetStructure dss = new DataSetStructure();
            DataSet          ds  = dss.Deserialize(json);

            return(ds);
        }