public CremaBinaryTableCollection(CremaBinaryReader reader, TableIndex[] tableIndexes)
        {
            this.reader = reader;
            this.tables = new OrderedDictionary(tableIndexes.Length, StringResource.GetComparer(this.reader.CaseSensitive));
            var tableStrings = StringResource.GetTableStrings(null);

            foreach (TableIndex item in tableIndexes)
            {
                this.tables.Add(tableStrings.GetString(item.TableName), null);
            }

            this.tableNames = this.tables.Keys.Cast <string>().ToArray();
        }
Example #2
0
 public CremaBinaryColumnCollection(CremaBinaryTable table, int capacity, bool caseSensitive)
 {
     this.table   = table;
     this.columns = new OrderedDictionary(capacity, StringResource.GetComparer(caseSensitive));
 }