Table of Contents

Enum AgeGroup

Namespace
TinyLife.Objects
Assembly
TinyLife.dll

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 = 1

An age group that represents babies

Child = 4

An age group that represents children

Adult = 32

An age group that represents adults

Elder = 64

An age group that represents elders.

ChildOrYounger = Baby | Child

A combined flag that contains the baby and child age groups.

OlderThanChild = Adult | Elder

A combined flag that contains the adult and elder age groups.

ChildOrOlder = Child | AdultOrOlder

A combined flag that contains the child, adult and elder age groups.

YoungerThanAdult = Baby | Child

A combined flag that contains the baby and child age groups.

AdultOrOlder = Adult | Elder

A combined flag that contains the adult and elder age groups.