public bool Contains(Message obj) { foreach(Message child in List) { if (obj.Equals(child)){ return true; } } return false; }