Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Core.dll Namespace: CloudNimble.EasyAF.Core Inheritance: System.Object

Syntax

Summary

Describes an interval of time to be used in time-based calculations. Provides methods to calculate rates and frequencies based on the interval value and type.

Type Parameters

Examples

Constructors

.ctor

Creates a new instance of the Interval1` class.

Syntax

.ctor

Creates a new instance of the Interval1` class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

Type

The base unit that describes what the quantity of this Interval references.

Syntax

Property Value

Type: CloudNimble.EasyAF.Core.IntervalType

Value

The duration of the Interval.

Syntax

Property Value

Type: T

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

PerDay Virtual

Given this Interval1` instance, calculates how many occurrences will happen per day.

Syntax

Returns

Type: System.Decimal The number of occurrences per day as a decimal value.

Exceptions

PerDay Virtual

Given this Interval1` instance and a quantity, calculates the total output per day.

Syntax

Parameters

Returns

Type: System.Decimal The total output per day as a decimal value.

Exceptions

Examples

PerHour Virtual

Given this Interval1` instance, calculates how many occurrences will happen per hour.

Syntax

Returns

Type: System.Decimal The number of occurrences per hour as a decimal value.

Exceptions

PerHour Virtual

Given this Interval1` instance and a quantity, calculates the total output per hour.

Syntax

Parameters

Returns

Type: System.Decimal The total output per hour as a decimal value.

Exceptions

Examples

PerMinute Virtual

Given this Interval1` instance, calculates how many occurrences will happen per minute.

Syntax

Returns

Type: System.Decimal The number of occurrences per minute as a decimal value.

Exceptions

Remarks

If you need this as a whole number, wrap the result in Decimal).

PerMinute Virtual

Given this Interval1` instance and a quantity, calculates the total output per minute.

Syntax

Parameters

Returns

Type: System.Decimal The total output per minute as a decimal value.

Exceptions

Examples

PerMonth Virtual

Given this Interval1` instance, calculates how many occurrences will happen per month.

Syntax

Returns

Type: System.Decimal The number of occurrences per month as a decimal value.

Exceptions

PerMonth Virtual

Given this Interval1` instance and a quantity, calculates the total output per month.

Syntax

Parameters

Returns

Type: System.Decimal The total output per month as a decimal value.

Exceptions

Examples

PerWeek Virtual

Given this Interval1` instance, calculates how many occurrences will happen per week.

Syntax

Returns

Type: System.Decimal The number of occurrences per week as a decimal value.

Exceptions

PerWeek Virtual

Given this Interval1` instance and a quantity, calculates the total output per week.

Syntax

Parameters

Returns

Type: System.Decimal The total output per week as a decimal value.

Exceptions

Examples

PerYear Virtual

Given this Interval1` instance, calculates how many occurrences will happen per year.

Syntax

Returns

Type: System.Decimal The number of occurrences per year as a decimal value.

Exceptions

PerYear Virtual

Given this Interval1` instance and a quantity, calculates the total output per year.

Syntax

Parameters

Returns

Type: System.Decimal The total output per year as a decimal value.

Exceptions

Examples

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Override

Syntax

Returns

Type: string

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?