Пример #1
0
 public StorageSectionBase(StorageManagerImplementation manager, StorageEntry entry, string key, ulong additionalNumericKey, string pathPrefix, StorageSectionOpenFlag openFlags)
 {
     if (string.IsNullOrWhiteSpace(key))
     {
         throw new ArgumentException("Wrong key");
     }
     this.manager         = manager;
     this.entry           = entry;
     this.key             = key;
     this.path            = entry.Path + System.IO.Path.DirectorySeparatorChar + StorageManagerImplementation.NormalizeKey(key, additionalNumericKey, pathPrefix);
     this.openFlags       = openFlags;
     this.commitOnDispose = (openFlags & StorageSectionOpenFlag.AccessMask) == StorageSectionOpenFlag.ReadWrite;
 }