System.Data.DataTable.DataTable C# (CSharp) Method

DataTable() protected method

protected DataTable ( SerializationInfo info, StreamingContext context ) : System.Collections
info SerializationInfo
context StreamingContext
return System.Collections
        protected DataTable(SerializationInfo info, StreamingContext context) : this()
        {
            bool isSingleTable = context.Context != null ? Convert.ToBoolean(context.Context, CultureInfo.InvariantCulture) : true;
            SerializationFormat remotingFormat = SerializationFormat.Xml;
            SerializationInfoEnumerator e = info.GetEnumerator();
            while (e.MoveNext())
            {
                switch (e.Name)
                {
                    case "DataTable.RemotingFormat": //DataTable.RemotingFormat does not exist in V1/V1.1 versions
                        remotingFormat = (SerializationFormat)e.Value;
                        break;
                }
            }

            DeserializeDataTable(info, context, isSingleTable, remotingFormat);
        }

Same methods

DataTable::DataTable ( ) : System.Collections
DataTable::DataTable ( string tableName ) : System.Collections
DataTable::DataTable ( string tableName, string tableNamespace ) : System.Collections
DataTable