Show / Hide Table of Contents

Class IntExtensions

Integer extension methods

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

Methods

View Source

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

View Source

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

  • View Source
☀
☾
Back to top Generated by DocFX