private bool IsIn(List <CFileWatcher> lsFileWatches, CFileWatcher find) { foreach (CFileWatcher item in lsFileWatches) { if (item.GetWindowsPath() == find.GetWindowsPath() && item._linux_root_path == find._linux_root_path) { return(true); } } return(false); }