C# Class Foobricator.Output.ConditionalOutput

Only output the targets when a condition is met
Inheritance: IOutput, IDebugInfoProvider
Show file Open project: geoffles/Foobricator Class Usage Examples

Public Properties

Property Type Description
Target List
When When

Public Methods

Method Description
ConditionalOutput ( IEnumerable target, When when ) : System.Collections.Generic

Create a new conditional output

Evaluate ( TextWriter writer ) : void

Tests the when condition and evaluates the outputs when true.

Method Details

ConditionalOutput() public method

Create a new conditional output
public ConditionalOutput ( IEnumerable target, When when ) : System.Collections.Generic
target IEnumerable Target outputs
when When Condition for output
return System.Collections.Generic

Evaluate() public method

Tests the when condition and evaluates the outputs when true.
public Evaluate ( TextWriter writer ) : void
writer System.IO.TextWriter
return void

Property Details

Target public property

A list of targets which will be output when the condition is met
public List Target
return List

When public property

The condition on which to output the targets
public When,Foobricator.Output When
return When