Show / Hide Table of Contents

Class DayPart

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.

Inheritance
Object
DayPart
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public class DayPart

Constructors

| Improve this Doc View Source

DayPart(String, TimeRange)

Initializes a new instance of the DayPart class.

Declaration
public DayPart(string name, TimeRange range)
Parameters
Type Name Description
String name

The name of the part of a day.

TimeRange range

The time range to cover.

Properties

| Improve this Doc View Source

Afternoon

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

Declaration
public static DayPart Afternoon { get; }
Property Value
Type Description
DayPart

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

| Improve this Doc View Source

All

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

Declaration
public static IEnumerable<DayPart> All { get; }
Property Value
Type Description
IEnumerable<DayPart>

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

| Improve this Doc View Source

Evening

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

Declaration
public static DayPart Evening { get; }
Property Value
Type Description
DayPart

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

| Improve this Doc View Source

Forenoon

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

Declaration
public static DayPart Forenoon { get; }
Property Value
Type Description
DayPart

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

| Improve this Doc View Source

Morning

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

Declaration
public static DayPart Morning { get; }
Property Value
Type Description
DayPart

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

| Improve this Doc View Source

Name

Gets the name of a DayPart.

Declaration
public string Name { get; }
Property Value
Type Description
String

The name of a DayPart.

| Improve this Doc View Source

Night

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

Declaration
public static DayPart Night { get; }
Property Value
Type Description
DayPart

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

| Improve this Doc View Source

Range

Gets the approximate range that this DayPart represents.

Declaration
public TimeRange Range { get; set; }
Property Value
Type Description
TimeRange

The approximate range that this DayPart represents.

Methods

| Improve this Doc View Source

ToString()

Returns a String that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
String

A String that represents this instance.

Overrides
Object.ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX