Show / Hide Table of Contents

Class PeriodValue

Payroll value for a date period

Inheritance
object
PayrollValue
PeriodValue
Inherited Members
PayrollValue.Empty
PayrollValue.Round(int, MidpointRounding)
PayrollValue.RoundUp(decimal)
PayrollValue.RoundDown(decimal)
PayrollValue.Truncate(int)
PayrollValue.Equals(object)
PayrollValue.GetHashCode()
PayrollValue.Value
PayrollValue.CurrentValue
PayrollValue.HasValue
PayrollValue.IsNumeric
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class PeriodValue : PayrollValue

Constructors

PeriodValue()

New period payroll value instance

Declaration
protected PeriodValue()

PeriodValue(DatePeriod, object)

New period payroll value instance

Declaration
public PeriodValue(DatePeriod period, object value)
Parameters
Type Name Description
DatePeriod period
object value

PeriodValue(DateTime?, DateTime?, object)

New period payroll value instance

Declaration
public PeriodValue(DateTime? start, DateTime? end, object value)
Parameters
Type Name Description
DateTime? start
DateTime? end
object value
Remarks

Fixed: Period is always set, including open-ended periods (null end → Date.MaxValue).

Properties

End

The period end

Declaration
public DateTime? End { get; }
Property Value
Type Description
DateTime?

Period

The period

Declaration
public DatePeriod Period { get; }
Property Value
Type Description
DatePeriod

Start

The period start

Declaration
public DateTime? Start { get; }
Property Value
Type Description
DateTime?

Methods

ToString()

Returns a string that represents this instance

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance

Overrides
PayrollValue.ToString()

Operators

implicit operator DateTime(PeriodValue)

Convert case value to DateTime

Declaration
public static implicit operator DateTime(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
DateTime

implicit operator decimal(PeriodValue)

Convert case value to decimal

Declaration
public static implicit operator decimal(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
decimal

implicit operator int(PeriodValue)

Convert case value to int/>

Declaration
public static implicit operator int(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
int

implicit operator DateTime?(PeriodValue)

Convert case value to nullable DateTime

Declaration
public static implicit operator DateTime?(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
DateTime?

implicit operator decimal?(PeriodValue)

Convert case value to nullable decimal

Declaration
public static implicit operator decimal?(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
decimal?

implicit operator int?(PeriodValue)

Convert case value to nullable int

Declaration
public static implicit operator int?(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
int?

implicit operator string(PeriodValue)

Convert case value to string/>

Declaration
public static implicit operator string(PeriodValue value)
Parameters
Type Name Description
PeriodValue value
Returns
Type Description
string

Extension Methods

PayrollValueExtensions.Convert(PayrollValue, Type, object)
PayrollValueExtensions.ToBoolean(PayrollValue)
PayrollValueExtensions.ToDateTime(PayrollValue)
PayrollValueExtensions.ToDecimal(PayrollValue)
PayrollValueExtensions.ToDecimal(PayrollValue, DecimalRounding)
PayrollValueExtensions.ToInt(PayrollValue)
PayrollValueExtensions.ToNullableBoolean(PayrollValue)
PayrollValueExtensions.ToNullableDateTime(PayrollValue)
PayrollValueExtensions.ToNullableDecimal(PayrollValue)
PayrollValueExtensions.ToNullableDecimal(PayrollValue, DecimalRounding)
PayrollValueExtensions.ToNullableInt(PayrollValue)
PayrollValueExtensions.ToString(PayrollValue)
PayrollValueExtensions.ValueAs<T>(PayrollValue, T)
PeriodValueExtensions.ToDateTime(PeriodValue)
PeriodValueExtensions.ToDecimal(PeriodValue)
PeriodValueExtensions.ToDecimal(PeriodValue, DecimalRounding)
PeriodValueExtensions.ToInt(PeriodValue)
PeriodValueExtensions.ToNullableDateTime(PeriodValue)
PeriodValueExtensions.ToNullableDecimal(PeriodValue)
PeriodValueExtensions.ToNullableDecimal(PeriodValue, DecimalRounding)
PeriodValueExtensions.ToNullableInt(PeriodValue)
PeriodValueExtensions.ToString(PeriodValue)
PeriodValueExtensions.ValueAs(PeriodValue, Type)
PeriodValueExtensions.ValueAs<T>(PeriodValue, T)
ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX