Class PayrollValueExtensions
Inheritance
PayrollValueExtensions
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class PayrollValueExtensions
Methods
Convert(PayrollValue, Type, object)
Convert payroll case value to custom type
Declaration
public static object Convert(this PayrollValue payrollValue, Type type, object defaultValue = null)
Parameters
Returns
GetDecimalValues(IEnumerable<PayrollValue>)
Extract all decimal values
Declaration
public static IEnumerable<decimal> GetDecimalValues(this IEnumerable<PayrollValue> values)
Parameters
Returns
ToBoolean(PayrollValue)
Convert payroll case value to bool
Declaration
public static bool ToBoolean(this PayrollValue payrollValue)
Parameters
Returns
ToDateTime(PayrollValue)
Convert payroll case value to date time/>
Declaration
public static DateTime ToDateTime(this PayrollValue payrollValue)
Parameters
Returns
ToDecimal(PayrollValue)
Convert payroll case value to decimal
Declaration
public static decimal ToDecimal(this PayrollValue payrollValue)
Parameters
Returns
ToDecimal(PayrollValue, DecimalRounding)
Convert payroll case value to decimal
Declaration
public static decimal ToDecimal(this PayrollValue payrollValue, DecimalRounding rounding)
Parameters
Returns
ToInt(PayrollValue)
Convert payroll case value to int
Declaration
public static int ToInt(this PayrollValue payrollValue)
Parameters
Returns
ToNullableBoolean(PayrollValue)
Convert payroll case value to nullable bool
Declaration
public static bool? ToNullableBoolean(this PayrollValue payrollValue)
Parameters
Returns
ToNullableDateTime(PayrollValue)
Convert payroll case value to nullable date time/>
Declaration
public static DateTime? ToNullableDateTime(this PayrollValue payrollValue)
Parameters
Returns
ToNullableDecimal(PayrollValue)
Convert payroll case value to nullable decimal/>
Declaration
public static decimal? ToNullableDecimal(this PayrollValue payrollValue)
Parameters
Returns
ToNullableDecimal(PayrollValue, DecimalRounding)
Convert payroll case value to nullable decimal/>
Declaration
public static decimal? ToNullableDecimal(this PayrollValue payrollValue, DecimalRounding rounding)
Parameters
Returns
ToNullableInt(PayrollValue)
Convert payroll case value to nullable int
Declaration
public static int? ToNullableInt(this PayrollValue payrollValue)
Parameters
Returns
ToString(PayrollValue)
Convert payroll case value to string
Declaration
public static string ToString(this PayrollValue payrollValue)
Parameters
Returns
ValueAs<T>(PayrollValue, T)
Convert payroll case value to custom type
Declaration
public static T ValueAs<T>(this PayrollValue payrollValue, T defaultValue = default)
Parameters
| Type |
Name |
Description |
| PayrollValue |
payrollValue |
|
| T |
defaultValue |
The default value
|
Returns
Type Parameters