private bool PathListContains(AccessiblePath [] paths, string bus_name, string path) { foreach (AccessiblePath child in paths) if (child.bus_name == bus_name && child.path.ToString () == path) return true; return false; }