This validation method performs a range check on a collection of objects.

Namespace: Nehta.VendorLibrary.Common
Assembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 3.0.2.0 (1.0.0.0)

Syntax

C#
public bool RangeCheck(
	string name,
	ICollection value,
	int min,
	int max
)
Visual Basic
Public Function RangeCheck ( _
	name As String, _
	value As ICollection, _
	min As Integer, _
	max As Integer _
) As Boolean
Visual C++
public:
bool RangeCheck(
	String^ name, 
	ICollection^ value, 
	int min, 
	int max
)

Parameters

name
Type: System..::..String
The name of the property that is being validates
value
Type: System.Collections..::..ICollection
The value of the property (E.g. the collection)
min
Type: System..::..Int32
The acceptable minimum value
max
Type: System..::..Int32
The acceptable maximum value

Return Value

A boolean indicating if the validation passed

See Also