DnSpyFile FindByKey_NoLock(IDnSpyFilenameKey key) { if (key == null) { return(null); } foreach (var file in files) { if (key.Equals(file.Key)) { return(file); } } return(null); }
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); }
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); }
DnSpyFile FindByKey_NoLock(IDnSpyFilenameKey key) { if (key == null) return null; foreach (var file in files) { if (key.Equals(file.Key)) return file; } return null; }
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; }
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; }