/// <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); }
/// <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); }
public static DataSet DeSerialize(byte[] data) { dataSet value = fastCSharp.emit.dataDeSerializer.DeSerialize <dataSet>(data); return(value != null?Get(value) : null); }