private bool ListContainsValue( List<NetworkNode> nodePaths, string value ) { bool found = false; foreach (NetworkNode nodePath in nodePaths) { if (nodePath.Path.Value == value) { found = true; break; } } return found; }