예제 #1
0
 DnSpyFile FindByKey_NoLock(IDnSpyFilenameKey key)
 {
     if (key == null)
     {
         return(null);
     }
     foreach (var file in files)
     {
         if (key.Equals(file.Key))
         {
             return(file);
         }
     }
     return(null);
 }
예제 #2
0
 IDnSpyFile Find_NoLock(IDnSpyFilenameKey key)
 {
     Debug.Assert(key != null);
     if (key == null)
     {
         return(null);
     }
     foreach (var file in files)
     {
         if (key.Equals(file.Key))
         {
             return(file);
         }
     }
     return(null);
 }
예제 #3
0
        IDnSpyFile Remove_NoLock(IDnSpyFilenameKey key)
        {
            if (key == null)
            {
                return(null);
            }

            for (int i = 0; i < files.Count; i++)
            {
                if (key.Equals(files[i].Key))
                {
                    files.RemoveAt(i);
                    return(files[i]);
                }
            }

            return(null);
        }
예제 #4
0
		DnSpyFile FindByKey_NoLock(IDnSpyFilenameKey key) {
			if (key == null)
				return null;
			foreach (var file in files) {
				if (key.Equals(file.Key))
					return file;
			}
			return null;
		}
예제 #5
0
        IDnSpyFile Remove_NoLock(IDnSpyFilenameKey key)
        {
            if (key == null)
                return null;

            for (int i = 0; i < files.Count; i++) {
                if (key.Equals(files[i].Key)) {
                    files.RemoveAt(i);
                    return files[i];
                }
            }

            return null;
        }
예제 #6
0
 IDnSpyFile Find_NoLock(IDnSpyFilenameKey key)
 {
     Debug.Assert(key != null);
     if (key == null)
         return null;
     foreach (var file in files) {
         if (key.Equals(file.Key))
             return file;
     }
     return null;
 }