public bool Contains(ushort age)
{
return (start <= age) && (age <= end);
}
//--------------------------------------------------------------------- /// <summary> /// Does the range overlap another range? /// </summary> public bool Overlaps(AgeRange other) { return Contains(other.Start) || other.Contains(start); }