Class NullableExtensions
Inheritance
NullableExtensions
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class NullableExtensions
Methods
View Source
Safe(bool?, bool)
Safe nullable boolean cast
Declaration
public static bool Safe(this bool? value, bool defaultValue = false)
Parameters
| Type |
Name |
Description |
| bool? |
value |
|
| bool |
defaultValue |
|
Returns
View Source
Safe(DateTime?, DateTime)
Safe nullable DateTime cast
Declaration
public static DateTime Safe(this DateTime? value, DateTime defaultValue = default)
Parameters
Returns
View Source
Safe(decimal?, decimal)
Safe nullable decimal cast
Declaration
public static decimal Safe(this decimal? value, decimal defaultValue = 0)
Parameters
Returns
View Source
Safe(int?, int)
Declaration
public static int Safe(this int? value, int defaultValue = 0)
Parameters
| Type |
Name |
Description |
| int? |
value |
|
| int |
defaultValue |
|
Returns