C# Class Foobricator.Output.When

Encapusulates a condition
Inheritance: IDebugInfoProvider
Mostra file Open project: geoffles/Foobricator Class Usage Examples

Public Properties

Property Type Description
Operator Op
RightHandSide object
Source ISource

Public Methods

Method Description
True ( ) : bool

Tests the conditions and returns the result

When ( DataReference reference, Op @operator, object rightHandSide ) : System

Initialise a new instance against a reference

When ( ISource source, Op @operator, object rightHandSide ) : System

Initalise a new instance against a source

Private Methods

Method Description
DecimalCompare ( decimal value ) : bool
IntCompare ( int value ) : bool
StringCompare ( string value ) : bool

Method Details

True() public method

Tests the conditions and returns the result
public True ( ) : bool
return bool

When() public method

Initialise a new instance against a reference
public When ( DataReference reference, Op @operator, object rightHandSide ) : System
reference Foobricator.Tools.DataReference
@operator Op
rightHandSide object
return System

When() public method

Initalise a new instance against a source
public When ( ISource source, Op @operator, object rightHandSide ) : System
source ISource
@operator Op
rightHandSide object
return System

Property Details

Operator public_oe property

Logical operator. Can be combination.
public Op Operator
return Op

RightHandSide public_oe property

The value to compare Source to
public object RightHandSide
return object

Source public_oe property

The target object to evaluate against
public ISource Source
return ISource