Show / Hide Table of Contents

Class TupleExtensions

Tuple extension methods (internal usage)

Inheritance
object
TupleExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class TupleExtensions

Methods

View Source

TupleToCasePeriodValue(List<Tuple<DateTime, DateTime?, object>>, string)

Convert tuple values to a case value

Declaration
public static CasePayrollValue TupleToCasePeriodValue(this List<Tuple<DateTime, DateTime?, object>> values, string caseFieldName)
Parameters
Type Name Description
List<Tuple<DateTime, DateTime?, object>> values
string caseFieldName

The case field name

Returns
Type Description
CasePayrollValue

The case values

View Source

TupleToCaseValue(Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>)

Convert tuple values to case value

Declaration
public static CaseValue TupleToCaseValue(this Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>> value)
Parameters
Type Name Description
Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>> value

The tuple value

Returns
Type Description
CaseValue

The case period values

View Source

TupleToCaseValues(List<Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>>)

Convert tuple values to case values

Declaration
public static List<CaseValue> TupleToCaseValues(this List<Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>> values)
Parameters
Type Name Description
List<Tuple<string, DateTime, Tuple<DateTime?, DateTime?>, object, DateTime?, List<string>, Dictionary<string, object>>> values

The tuple values

Returns
Type Description
List<CaseValue>

The case period values

View Source

TupleToCaseValuesDictionary(Dictionary<string, List<Tuple<DateTime, DateTime?, DateTime?, object>>>)

Convert tuple values to a case value dictionary

Declaration
public static CasePayrollValueDictionary TupleToCaseValuesDictionary(this Dictionary<string, List<Tuple<DateTime, DateTime?, DateTime?, object>>> values)
Parameters
Type Name Description
Dictionary<string, List<Tuple<DateTime, DateTime?, DateTime?, object>>> values

The values

Returns
Type Description
CasePayrollValueDictionary

The case values grouped by case field name

View Source

TupleToCollectorCustomResults(List<Tuple<string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)

Convert tuple values to a collector custom result

Declaration
public static List<CollectorCustomResult> TupleToCollectorCustomResults(this List<Tuple<string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
Type Name Description
List<Tuple<string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values

The tuple values

Returns
Type Description
List<CollectorCustomResult>

The collector custom results

View Source

TupleToCollectorResults(List<Tuple<string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)

Convert tuple values to a collector result

Declaration
public static List<CollectorResult> TupleToCollectorResults(this List<Tuple<string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
Type Name Description
List<Tuple<string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values

The tuple values

Returns
Type Description
List<CollectorResult>

The collector results

View Source

TupleToLookupRangeBracketList(List<Tuple<string, string, decimal, decimal, decimal?>>)

Convert tuple values to a wage type custom result

Declaration
public static List<LookupRangeBracket> TupleToLookupRangeBracketList(List<Tuple<string, string, decimal, decimal, decimal?>> brackets)
Parameters
Type Name Description
List<Tuple<string, string, decimal, decimal, decimal?>> brackets

The lookup brackets

Returns
Type Description
List<LookupRangeBracket>

The lookup brackets

View Source

TupleToPeriodValues(List<Tuple<DateTime, DateTime?, object>>)

Convert tuple values to case period values

Declaration
public static List<PeriodValue> TupleToPeriodValues(this List<Tuple<DateTime, DateTime?, object>> values)
Parameters
Type Name Description
List<Tuple<DateTime, DateTime?, object>> values
Returns
Type Description
List<PeriodValue>

The period values

View Source

TupleToWageTypeCustomResults(List<Tuple<decimal, string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)

Convert tuple values to a wage type custom result

Declaration
public static List<WageTypeCustomResult> TupleToWageTypeCustomResults(this List<Tuple<decimal, string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
Type Name Description
List<Tuple<decimal, string, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values

The tuple values

Returns
Type Description
List<WageTypeCustomResult>

The wage type custom results

View Source

TupleToWageTypeResults(List<Tuple<decimal, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>>)

Convert tuple values to a wage type result

Declaration
public static List<WageTypeResult> TupleToWageTypeResults(this List<Tuple<decimal, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values)
Parameters
Type Name Description
List<Tuple<decimal, string, Tuple<DateTime, DateTime>, decimal, List<string>, Dictionary<string, object>>> values

The tuple values

Returns
Type Description
List<WageTypeResult>

The wage type results

  • View Source
☀
☾
Back to top Generated by DocFX