示例#1
0
 public SdodWrapper(Algorithm.SortedDictionary.ISortedDictionaryOnDisk sDod)
 {
     if (sDod == null)
     {
         throw new ArgumentNullException("sDod");
     }
     RealDictionary = sDod;
 }
示例#2
0
 /// <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);
 }