Lokad SDK for .NET - Documentation
Arguments<(Of <(T1, T2, T3, T4>)>) Method (first, second, third, fourth)
NamespacesLokadEnforceArguments<(Of <(T1, T2, T3, T4>)>)(Func<(Of <(T1>)>), Func<(Of <(T2>)>), Func<(Of <(T3>)>), Func<(Of <(T4>)>))

Throws exception if one of the provided objects is null.

CopyC#
Enforce.Arguments(() => controller, () => service, () => parameters);
Declaration Syntax
C#Visual BasicVisual C++
public static void Arguments<T1, T2, T3, T4>(
	Func<T1> first,
	Func<T2> second,
	Func<T3> third,
	Func<T4> fourth
)
where T1 : class
where T2 : class
where T3 : class
where T4 : class
Public Shared Sub Arguments(Of T1 As Class, T2 As Class, T3 As Class, T4 As Class) ( _
	first As Func(Of T1), _
	second As Func(Of T2), _
	third As Func(Of T3), _
	fourth As Func(Of T4) _
)
public:
generic<typename T1, typename T2, typename T3, typename T4>
where T1 : ref class
where T2 : ref class
where T3 : ref class
where T4 : ref class
static void Arguments(
	Func<T1>^ first, 
	Func<T2>^ second, 
	Func<T3>^ third, 
	Func<T4>^ fourth
)
Generic Template Parameters
T1
The type of the first argument.
T2
The type of the second argument.
T3
The type of the third argument.
T4
The type of the fourth argument.
Parameters
first (Func<(Of <(T1>)>))
The first argument to check.
second (Func<(Of <(T2>)>))
The second argument to check.
third (Func<(Of <(T3>)>))
The third argument to check.
fourth (Func<(Of <(T4>)>))
The fourth argument to check.
Remarks
Silverlight 2.0 does not support fast resolution of variable names, yet

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