public bool Equals(AgentsList other) { return(this.Select(x => x.Name).All(t => other.Select(x => x.Name).Contains(t)) && other.Select(x => x.Name).All(t => this.Select(x => x.Name).Contains(t))); }
public bool HasSubset(AgentsList subset) { return(subset.All(x => this.Contains(x))); }