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

Throws exception if one of the provided objects is null.

CopyC#
Enforce.Arguments(() => controller, () => service);
Declaration Syntax
C#Visual BasicVisual C++
public static void Arguments<T1, T2>(
	Func<T1> first,
	Func<T2> second
)
where T1 : class
where T2 : class
Public Shared Sub Arguments(Of T1 As Class, T2 As Class) ( _
	first As Func(Of T1), _
	second As Func(Of T2) _
)
public:
generic<typename T1, typename T2>
where T1 : ref class
where T2 : ref class
static void Arguments(
	Func<T1>^ first, 
	Func<T2>^ second
)
Generic Template Parameters
T1

[Missing <typeparam name="T1"/> documentation for "M:Lokad.Enforce.Arguments``2(System.Func{``0},System.Func{``1})"]

T2

[Missing <typeparam name="T2"/> documentation for "M:Lokad.Enforce.Arguments``2(System.Func{``0},System.Func{``1})"]

Parameters
first (Func<(Of <(T1>)>))
The first argument to check for
second (Func<(Of <(T2>)>))
The second argument to check for.
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)