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

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>(
	Func<T1> first,
	Func<T2> second,
	Func<T3> third
)
where T1 : class
where T2 : class
where T3 : class
Public Shared Sub Arguments(Of T1 As Class, T2 As Class, T3 As Class) ( _
	first As Func(Of T1), _
	second As Func(Of T2), _
	third As Func(Of T3) _
)
public:
generic<typename T1, typename T2, typename T3>
where T1 : ref class
where T2 : ref class
where T3 : ref class
static void Arguments(
	Func<T1>^ first, 
	Func<T2>^ second, 
	Func<T3>^ third
)
Generic Template Parameters
T1
The type of the first argument.
T2
The type of the second argument.
T3
The type of the third 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.
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)