Enum AgeGroup
A flags enumeration that represents the age groups a PersonLike can have. Since this enumeration has the FlagsAttribute, multiple age groups can be combined into one value. Note that this enumeration, for convenience, also contains predefined combined flags like OlderThanChild and AdultOrOlder.
[Flags]
public enum AgeGroup
- Extension Methods
Fields
Baby = 1An age group that represents babies
Child = 4An age group that represents children
Adult = 32An age group that represents adults
Elder = 64An age group that represents elders.
ChildOrYounger = Baby | ChildA combined flag that contains the baby and child age groups.
OlderThanChild = Adult | ElderA combined flag that contains the adult and elder age groups.
ChildOrOlder = Child | AdultOrOlderA combined flag that contains the child, adult and elder age groups.
YoungerThanAdult = Baby | ChildA combined flag that contains the baby and child age groups.
AdultOrOlder = Adult | ElderA combined flag that contains the adult and elder age groups.