Class IntExtensions
Integer extension methods
Inherited Members
Namespace: PayrollEngine.Client.Scripting
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public static class IntExtensions
Methods
View SourceIsWithin(int, int, int)
Determines whether a value is within a range
Declaration
public static bool IsWithin(this int value, int min, int max)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The value to test |
| int | min | The minimum value |
| int | max | The maximum value |
Returns
| Type | Description |
|---|---|
| bool | True if the specified value is within minimum and maximum |
IsWithin(int?, int, int)
Determines whether a value is within a range
Declaration
public static bool IsWithin(this int? value, int min, int max)
Parameters
| Type | Name | Description |
|---|---|---|
| int? | value | The value to test |
| int | min | The minimum value |
| int | max | The maximum value |
Returns
| Type | Description |
|---|---|
| bool | True if the specified value is within minimum and maximum |