예제 #1
0
 protected DataTableColumn(SerializationInfo info, StreamingContext context)
 {
     Data       = info.GetString("data");
     Name       = info.GetString("name");
     Searchable = info.GetBoolean("searchable");
     Orderable  = info.GetBoolean("orderable");
     Search     = (DataTableColumnSearch)info.GetValue("search", typeof(DataTableColumnSearch));
 }
예제 #2
0
        public DataTableOptions(SerializationInfo info, StreamingContext context)
        {
            Search = new DataTableColumnSearch();
            Params = new List <string>();

            Draw    = info.GetString("draw");
            Start   = info.GetInt32("start");
            Length  = info.GetInt32("length");
            Order   = (List <DataTableColumnOrder>)info.GetValue("order", typeof(List <DataTableColumnOrder>));
            Columns = (List <DataTableColumn>)info.GetValue("columns", typeof(List <DataTableColumn>));
            Search  = (DataTableColumnSearch)info.GetValue("search", typeof(DataTableColumnSearch));
            Params  = (List <string>)info.GetValue("params", typeof(List <string>));
        }