Validates that an integer is within acceptable range.
Namespace: Nehta.VendorLibrary.CommonAssembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 3.0.2.0 (1.0.0.0)
Syntax
C# |
---|
public static void ValidateNumberRange( string name, Nullable<int> lowerBound, Nullable<int> upperBound, int value ) |
Visual Basic |
---|
Public Shared Sub ValidateNumberRange ( _ name As String, _ lowerBound As Nullable(Of Integer), _ upperBound As Nullable(Of Integer), _ value As Integer _ ) |
Visual C++ |
---|
public: static void ValidateNumberRange( String^ name, Nullable<int> lowerBound, Nullable<int> upperBound, int value ) |
Parameters
- name
- Type: System..::..String
The name of the argument to validate.
- lowerBound
- Type: System..::..Nullable<(Of <(<'Int32>)>)>
The inclusive lower bound to validate against.
- upperBound
- Type: System..::..Nullable<(Of <(<'Int32>)>)>
The inclusive upper bound to validate against.
- value
- Type: System..::..Int32
The value to be validated.