Lokad SDK for .NET - Documentation
That<(Of <(T>)>) Method (argumentReference, rules)
NamespacesLokadEnforceThat<(Of <(T>)>)(Func<(Of <(T>)>), array<Rule<(Of <(T>)>)>[]()[])
Runs the rules against single item, using scope that fails on WhenError(RuleLevel).
Declaration Syntax
C#Visual BasicVisual C++
public static void That<T>(
	Func<T> argumentReference,
	params Rule<T>[] rules
)
Public Shared Sub That(Of T) ( _
	argumentReference As Func(Of T), _
	ParamArray rules As Rule(Of T)() _
)
public:
generic<typename T>
static void That(
	Func<T>^ argumentReference, 
	... array<Rule<T>^>^ rules
)
Generic Template Parameters
T
type of the item to validate
Parameters
argumentReference (Func<(Of <(T>)>))
The item to validate.
rules (array< Rule<(Of <(T>)>) >[]()[])
The rules.
Remarks
Silverlight 2.0 does not support fast resolution of variable names, yet
Exceptions
ExceptionCondition
RuleExceptionWhen check fails

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