protected bool Equals(AgeCategory other) { return(Name == other.Name && MinAge == other.MinAge && MaxAge == other.MaxAge); }
public Participant(string name, int age, AgeCategory ageCategory) { Name = name; Age = age; AgeCategory = ageCategory; }