Inheritance: IDisposable
Esempio n. 1
0
 public static bool TryGetValue(IntPtr key, out AbstractFile file)
 {
     lock (_fileIndexLock)
     {
         return(_files.TryGetValue(key, out file) && file != null);
     }
 }
Esempio n. 2
0
 public static bool TryGetValue(IntPtr key, out AbstractFile file)
 {
   lock (_fileIndexLock)
   {
     return _files.TryGetValue(key, out file) && file != null;
   }
 }
Esempio n. 3
0
 public static IntPtr AddFile(AbstractFile file)
 {
     lock (_fileIndexLock)
     {
         IntPtr index = _nextFileIndex;
         _files.Add(index, file);
         _nextFileIndex = IntPtr.Add(_nextFileIndex, 1);
         return(index);
     }
 }
Esempio n. 4
0
 public static IntPtr AddFile(AbstractFile file)
 {
   lock (_fileIndexLock)
   {
     IntPtr index = _nextFileIndex;
     _files.Add(index, file);
     _nextFileIndex = IntPtr.Add(_nextFileIndex, 1);
     return index;
   }
 }