This validation method performs a match check on two 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 MatchCheck<T>(
	string name,
	T value,
	T expected
)
Visual Basic
Public Function MatchCheck(Of T) ( _
	name As String, _
	value As T, _
	expected As T _
) As Boolean
Visual C++
public:
generic<typename T>
bool MatchCheck(
	String^ name, 
	T value, 
	T expected
)

Parameters

name
Type: System..::..String
The name of the property that is being validates
value
Type: T
The value of the property (E.g. the collection)
expected
Type: T
The value that is expected

Type Parameters

T
The type of objects we are comparing

Return Value

A boolean indicating if the validation passed

See Also