public int Contains(string fdname) // give count if contains fdname, else zero { int index = Signals?.FindIndex((x) => x.Type.Equals(fdname, System.StringComparison.InvariantCultureIgnoreCase)) ?? -1; return((index >= 0) ? Signals[index].Count : 0); }