Table of Contents

Class ExpressionCollection

Namespace
NRules.RuleModel
Assembly
NRules.RuleModel.dll

Ordered readonly collection of named expressions.

public class ExpressionCollection : IEnumerable<NamedExpressionElement>, IEnumerable
Inheritance
ExpressionCollection
Implements
Inherited Members

Properties

Count

Number of expressions in the collection.

public int Count { get; }

Property Value

int

this[string]

Retrieves single expression by name.

public NamedExpressionElement this[string name] { get; }

Parameters

name string

Expression name.

Property Value

NamedExpressionElement

Matching expression.

Methods

Find(string)

Retrieves expressions by name.

public IEnumerable<NamedExpressionElement> Find(string name)

Parameters

name string

Expression name.

Returns

IEnumerable<NamedExpressionElement>

Matching expression or empty IEnumerable.

FindSingleOrDefault(string)

Retrieves single expression by name.

public NamedExpressionElement FindSingleOrDefault(string name)

Parameters

name string

Expression name.

Returns

NamedExpressionElement

Matching expression or null.

GetEnumerator()

Returns an enumerator for the contained expression elements.

public IEnumerator<NamedExpressionElement> GetEnumerator()

Returns

IEnumerator<NamedExpressionElement>