Show / Hide Table of Contents

Class ValueTypeExtensions

Value type extension methods

Inheritance
object
ValueTypeExtensions
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 ValueTypeExtensions

Methods

View Source

GetDataType(ValueType)

Get the data type

Declaration
public static Type GetDataType(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
Type

The data type

View Source

GetValueType(object)

Get the value type

Declaration
public static ValueType GetValueType(this object value)
Parameters
Type Name Description
object value

The value

Returns
Type Description
ValueType

The value type

View Source

IsBoolean(ValueType)

Test if value type is a bool

Declaration
public static bool IsBoolean(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
bool

True for boolean value types

View Source

IsDateTime(ValueType)

Test if value type is a date time

Declaration
public static bool IsDateTime(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
bool

True for date time value types

View Source

IsDecimal(ValueType)

Test if value type is a decimal number

Declaration
public static bool IsDecimal(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
bool

True for decimal number value types

View Source

IsInteger(ValueType)

Test if value type is an integer

Declaration
public static bool IsInteger(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
bool

True for integer value types

View Source

IsNumber(ValueType)

Test if value type is a number

Declaration
public static bool IsNumber(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
bool

True for number value types

View Source

IsString(ValueType)

Test if value type is a string

Declaration
public static bool IsString(this ValueType valueType)
Parameters
Type Name Description
ValueType valueType
Returns
Type Description
bool

True for string value types

View Source

JsonToValue(ValueType, string)

Convert json by value type

Declaration
public static object JsonToValue(this ValueType valueType, string json)
Parameters
Type Name Description
ValueType valueType

The value type

string json

The json to convert

Returns
Type Description
object

Object value

  • View Source
☀
☾
Back to top Generated by DocFX