public SdodWrapper(Algorithm.SortedDictionary.ISortedDictionaryOnDisk sDod) { if (sDod == null) { throw new ArgumentNullException("sDod"); } RealDictionary = sDod; }
/// <summary> /// Create a Lookup table /// </summary> /// <returns></returns> public Algorithm.SortedDictionary.ISortedDictionaryOnDisk CreateLookupTable(IInternalPersistent parent) { Algorithm.SortedDictionary.ISortedDictionaryOnDisk lookup = null; if (Transaction != null) { lookup = ((Transaction.TransactionBase)Transaction).CreateCollection(this); } lookup.Parent = parent; if (parent is Algorithm.Collection.ICollectionOnDisk && lookup.Transaction == null) { lookup.Transaction = ((Algorithm.Collection.ICollectionOnDisk)parent).Transaction; } return(lookup); }