예제 #1
0
        /// <summary>
        /// DataSet包装
        /// </summary>
        /// <param name="set"></param>
        /// <returns></returns>
        public static dataSet From(DataSet set)
        {
            if (set == null)
            {
                return(null);
            }
            dataSet value = new dataSet();

            value.from(set);
            return(value);
        }
예제 #2
0
        /// <summary>
        /// DataSet拆包
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public unsafe static DataSet Get(dataSet value)
        {
            if (value == null)
            {
                return(null);
            }
            DataSet set = new DataSet(value.name);

            try
            {
                value.set(set);
                return(set);
            }
            catch (Exception error)
            {
                set.Dispose();
                log.Error.Add(error, null, false);
            }
            return(null);
        }
예제 #3
0
        public static DataSet DeSerialize(byte[] data)
        {
            dataSet value = fastCSharp.emit.dataDeSerializer.DeSerialize <dataSet>(data);

            return(value != null?Get(value) : null);
        }