Table of Contents

Class DayPart

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Represents a part of a day. The built-in parts of day supports a roughly way to determine whether it is; Night, Morning, Forenoon, Afternoon or Evening. Keep in mind that there is no exact science for day parts; it is as much a cultural as it is a personal preference.

public class DayPart
Inheritance
DayPart

Constructors

DayPart(String, TimeRange)

Initializes a new instance of the DayPart class.

public DayPart(string name, TimeRange range)

Parameters

name String

The name of the part of a day.

range TimeRange

The time range to cover.

Properties

Afternoon

Gets the day part of a 24-hour period that approximates to Afternoon.

public static DayPart Afternoon { get; }

Property Value

DayPart

The range of a 24-hour period that approximates to Afternoon.

All

Gets the day parts of a 24-hour range of period.

public static IEnumerable<DayPart> All { get; }

Property Value

IEnumerable<DayPart>

The day parts of a 24-hour range of period.

Evening

Gets the day part of a 24-hour period that approximates to Evening.

public static DayPart Evening { get; }

Property Value

DayPart

The range of a 24-hour period that approximates to Evening.

Forenoon

Gets the day part of a 24-hour period that approximates to Forenoon.

public static DayPart Forenoon { get; }

Property Value

DayPart

The range of a 24-hour period that approximates to Forenoon.

Morning

Gets the day part of a 24-hour period that approximates to Morning.

public static DayPart Morning { get; }

Property Value

DayPart

The range of a 24-hour period that approximates to Morning.

Name

Gets the name of a DayPart.

public string Name { get; }

Property Value

String

The name of a DayPart.

Night

Gets the day part of a 24-hour period that approximates to Night.

public static DayPart Night { get; }

Property Value

DayPart

The range of a 24-hour period that approximates to Night.

Range

Gets the approximate range that this DayPart represents.

public TimeRange Range { get; set; }

Property Value

TimeRange

The approximate range that this DayPart represents.

Methods

ToString()

Returns a String that represents this instance.

public override string ToString()

Returns

String

A String that represents this instance.