Definition
Assembly: CloudNimble.EasyAF.Core.dll Namespace: CloudNimble.EasyAF.Core Inheritance: CloudNimble.EasyAF.Core.Interval<T>Syntax
Summary
Represents a ratio value that occurs at regular time intervals, enabling conversion between different time periods. This class combines a base time interval (from theInterval1` class) with a ratio value to calculate
total ratio amounts across different time periods.
Remarks
<strong>Key Concepts:</strong> <strong>Method Types:</strong> <strong>Common Use Cases:</strong>Examples
Constructors
.ctor
Initializes a new instance of theRatioInterval1` class with default values.
Syntax
.ctor
Initializes a new instance of theRatioInterval1` class with the specified interval value and type.
Syntax
Parameters
.ctor
Initializes a new instance of theRatioInterval1` class with the specified ratio, interval value, and type.
Syntax
Parameters
.ctor Inherited
Inherited from
CloudNimble.EasyAF.Core.Interval<T>Interval1` class.
Syntax
.ctor Inherited
Inherited from
CloudNimble.EasyAF.Core.Interval<T>Interval1` class.
Syntax
Parameters
.ctor Inherited
Inherited from
objectSyntax
Properties
Ratio
Gets or sets the decimal ratio value that is calculated over the given interval. Can represent a ratio, rate, or other decimal value per time period.Syntax
Property Value
Type:System.Decimal
Type Inherited
Inherited from
CloudNimble.EasyAF.Core.Interval<T>Syntax
Property Value
Type:CloudNimble.EasyAF.Core.IntervalType
Value Inherited
Inherited from
CloudNimble.EasyAF.Core.Interval<T>Syntax
Property Value
Type:T
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
PerDay Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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 Inherited Virtual
Inherited from
CloudNimble.EasyAF.Core.Interval<T>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
RatioPerDay
Calculates the total ratio value per day based on the interval and ratio. This method multiplies the interval frequency (how many intervals occur per day) by the ratio value.Syntax
Returns
Type:System.Decimal
The total ratio value per day as a decimal.
Examples
RatioPerDay
Calculates the total ratio value per day for a given quantity based on the interval and ratio.Syntax
Parameters
Returns
Type:System.Decimal
The total ratio value per day as a decimal.
Examples
RatioPerHour
Calculates the total ratio value per hour based on the interval and ratio. This method multiplies the interval frequency (how many intervals occur per hour) by the ratio value.Syntax
Returns
Type:System.Decimal
The total ratio value per hour as a decimal.
Examples
RatioPerHour
Calculates the total ratio value per hour for a given quantity based on the interval and ratio.Syntax
Parameters
Returns
Type:System.Decimal
The total ratio value per hour as a decimal.
Examples
RatioPerMinute
Calculates the total ratio value per minute based on the interval and ratio. This method multiplies the interval frequency (how many intervals occur per minute) by the ratio value.Syntax
Returns
Type:System.Decimal
The total ratio value per minute as a decimal.
Examples
RatioPerMinute
Calculates the total ratio value per minute for a given quantity based on the interval and ratio.Syntax
Parameters
Returns
Type:System.Decimal
The total ratio value per minute as a decimal.
Examples
RatioPerMonth
Calculates the total ratio value per month based on the interval and ratio. This method multiplies the interval frequency (how many intervals occur per month) by the ratio value.Syntax
Returns
Type:System.Decimal
The total ratio value per month as a decimal.
Examples
RatioPerMonth
Calculates the total ratio value per month for a given quantity based on the interval and ratio.Syntax
Parameters
Returns
Type:System.Decimal
The total ratio value per month as a decimal.
Examples
RatioPerWeek
Calculates the total ratio value per week based on the interval and ratio. This method multiplies the interval frequency (how many intervals occur per week) by the ratio value.Syntax
Returns
Type:System.Decimal
The total ratio value per week as a decimal.
Examples
RatioPerWeek
Calculates the total ratio value per week for a given quantity based on the interval and ratio.Syntax
Parameters
Returns
Type:System.Decimal
The total ratio value per week as a decimal.
Examples
RatioPerYear
Calculates the total ratio value per year based on the interval and ratio. This method multiplies the interval frequency (how many intervals occur per year) by the ratio value.Syntax
Returns
Type:System.Decimal
The total ratio value per year as a decimal.
Examples
RatioPerYear
Calculates the total ratio value per year for a given quantity based on the interval and ratio.Syntax
Parameters
Returns
Type:System.Decimal
The total ratio value per year as a decimal.
Examples
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Override
Inherited from
CloudNimble.EasyAF.Core.Interval<T>Syntax
Returns
Type:string
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?