Show / Hide Table of Contents

Class CaseValue

National, company or employee case value

Inheritance
object
CaseValue
Implements
IEquatable<CaseValue>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class CaseValue : IEquatable<CaseValue>

Constructors

View Source

CaseValue()

Initializes a new instance

Declaration
public CaseValue()
View Source

CaseValue(CaseValue)

Initializes a new instance from a copy

Declaration
public CaseValue(CaseValue copySource)
Parameters
Type Name Description
CaseValue copySource

The copy source

Remarks

Deep copies Tags and Attributes to prevent shared-reference mutations.

View Source

CaseValue(string, DateTime, DateTime?, DateTime?, PayrollValue, DateTime?, List<string>, Dictionary<string, object>)

Initializes a new instance

Declaration
public CaseValue(string caseFieldName, DateTime created, DateTime? start, DateTime? end, PayrollValue value, DateTime? cancellationDate = null, List<string> tags = null, Dictionary<string, object> attributes = null)
Parameters
Type Name Description
string caseFieldName

The case field name

DateTime created

The created date

DateTime? start

The start date

DateTime? end

The end date

PayrollValue value

The value

DateTime? cancellationDate

Cancellation date

List<string> tags

The tags

Dictionary<string, object> attributes

The attributes

Properties

View Source

Attributes

The attributes

Declaration
public Dictionary<string, object> Attributes { get; set; }
Property Value
Type Description
Dictionary<string, object>
View Source

CancellationDate

Cancellation date

Declaration
public DateTime? CancellationDate { get; set; }
Property Value
Type Description
DateTime?
View Source

CaseFieldName

The case field name

Declaration
public string CaseFieldName { get; }
Property Value
Type Description
string
View Source

Created

The created date

Declaration
public DateTime Created { get; set; }
Property Value
Type Description
DateTime
View Source

End

The period end date

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

Start

The period start date

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

Tags

The tags

Declaration
public List<string> Tags { get; set; }
Property Value
Type Description
List<string>
View Source

Value

The case period value as JSON

Declaration
public PayrollValue Value { get; }
Property Value
Type Description
PayrollValue

Methods

View Source

Equals(CaseValue)

Compare two objects

Declaration
public bool Equals(CaseValue compare)
Parameters
Type Name Description
CaseValue compare

The object to compare with this

Returns
Type Description
bool

True for objects with the same data

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()

Implements

IEquatable<T>

Extension Methods

CaseValueExtensions.Period(CaseValue)
CaseValueExtensions.ToDateTime(CaseValue)
CaseValueExtensions.ToDecimal(CaseValue)
CaseValueExtensions.ToDecimal(CaseValue, DecimalRounding)
CaseValueExtensions.ToInt(CaseValue)
CaseValueExtensions.ToNullableDateTime(CaseValue)
CaseValueExtensions.ToNullableDecimal(CaseValue)
CaseValueExtensions.ToNullableDecimal(CaseValue, DecimalRounding)
CaseValueExtensions.ToNullableInt(CaseValue)
CaseValueExtensions.ToString(CaseValue)
CaseValueExtensions.ValueAs(CaseValue, Type)
CaseValueExtensions.ValueAs<T>(CaseValue, 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)
  • View Source
☀
☾
Back to top Generated by DocFX