Craig's Utility Library  4.0 Beta
Utilities.Workflow.Manager.GenericConstraint< T > Class Template Reference

Generic constraint More...

Inheritance diagram for Utilities.Workflow.Manager.GenericConstraint< T >:
Utilities.Workflow.Manager.Interfaces.IConstraint< T >

Public Member Functions

 GenericConstraint ()
 Initializes a new instance of the GenericConstraint<T> class. More...
 
 GenericConstraint (Predicate< T > Constraint)
 Initializes a new instance of the GenericConstraint<T> class. More...
 
bool Eval (T Value)
 Evaluates the contraint against the value passed in and returns the result More...
 

Properties

Predicate< T > InternalFunction [get]
 Gets or sets the internal function. More...
 

Detailed Description

Generic constraint

Template Parameters
TData type

Definition at line 36 of file GenericConstraint.cs.

Constructor & Destructor Documentation

Initializes a new instance of the GenericConstraint<T> class.

Definition at line 41 of file GenericConstraint.cs.

Initializes a new instance of the GenericConstraint<T> class.

Parameters
ConstraintThe constraint predicate.

Definition at line 49 of file GenericConstraint.cs.

Member Function Documentation

bool Utilities.Workflow.Manager.GenericConstraint< T >.Eval ( Value)

Evaluates the contraint against the value passed in and returns the result

Parameters
ValueThe value.
Returns
True if the contraint is passed, false otherwise

Implements Utilities.Workflow.Manager.Interfaces.IConstraint< T >.

Definition at line 65 of file GenericConstraint.cs.

Property Documentation

Predicate<T> Utilities.Workflow.Manager.GenericConstraint< T >.InternalFunction
get

Gets or sets the internal function.

The internal function.

Definition at line 58 of file GenericConstraint.cs.


The documentation for this class was generated from the following file: