Пример #1
0
        /// <summary>
        /// Deserialise the current data table
        /// </summary>
        /// <param name="source">The current data table source.</param>
        /// <param name="serialisedData">The serialised data.</param>
        /// <returns>The deserialised data table.</returns>
        public static DataTable Deserialise(this DataTable source, byte[] serialisedData)
        {
            DataTableSerialisation seril = new DataTableSerialisation();

            return(seril.Deserialise(serialisedData));
        }
Пример #2
0
        /// <summary>
        /// Serialise the current data table
        /// </summary>
        /// <param name="source">The current data table source.</param>
        /// <returns>The byte array of serialised data.</returns>
        public static byte[] Serialise(this DataTable source)
        {
            DataTableSerialisation seril = new DataTableSerialisation();

            return(seril.Serialise(source));
        }