Table of Contents

Enum AgeGroup

Namespace
TinyLife.Objects
Assembly
Tiny Life.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

Adult = 32

An age group that represents adults

AdultOrOlder = 96

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

Baby = 1

An age group that represents babies

Child = 4

An age group that represents children

ChildOrOlder = Child | AdultOrOlder

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

ChildOrYounger = Baby | Child

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

OlderThanChild = 96

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

YoungerThanAdult = Baby | Child

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