This validation method performs a check to ensure that the object passed in is not null

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 ArgumentRequiredCheck<T>(
	string name,
	Nullable<T> value
)
where T : struct, new()
Visual Basic
Public Function ArgumentRequiredCheck(Of T As {Structure, New}) ( _
	name As String, _
	value As Nullable(Of T) _
) As Boolean
Visual C++
public:
generic<typename T>
where T : value class, gcnew()
bool ArgumentRequiredCheck(
	String^ name, 
	Nullable<T> value
)

Parameters

name
Type: System..::..String
The property name
value
Type: System..::..Nullable<(Of <(<'T>)>)>
The collection to check

Type Parameters

T
The type of object we are validating

Return Value

A boolean indicating if the validation passed

See Also