public object Clone() { PeopleList clone = new PeopleList(); foreach (string value in this) { clone.Add(value); } return(clone); }
public override bool Equals(object unknownObject) { if (unknownObject is PeopleList) { PeopleList compareList = unknownObject as PeopleList; if (compareList.Count == this.Count) { foreach (string text in compareList) { if (!this.Contains(text)) { return(false); } } return(true); } } return(false); }