Lokad SDK for .NET - Documentation
NotNull<(Of <(TValue>)>) Method (value, name)
NamespacesLokadEnforceNotNull<(Of <(TValue>)>)(TValue, String)
Throws proper exception if the class reference is null.
Declaration Syntax
C#Visual BasicVisual C++
public static void NotNull<TValue>(
	TValue value,
	string name
)
where TValue : class
Public Shared Sub NotNull(Of TValue As Class) ( _
	value As TValue, _
	name As String _
)
public:
generic<typename TValue>
where TValue : ref class
static void NotNull(
	TValue value, 
	String^ name
)
Generic Template Parameters
TValue
The type of the value.
Parameters
value (TValue)
Class reference to check.
name (String)
The name.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf class reference is null.

Assembly: Lokad.Sdk (Module: Lokad.Sdk) Version: 2.4.669.0 (2.4.669.0)