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