Class ExpressionCollection
Ordered readonly collection of named expressions.
public class ExpressionCollection : IReadOnlyList<NamedExpressionElement>, IReadOnlyCollection<NamedExpressionElement>, IEnumerable<NamedExpressionElement>, IEnumerable
- Inheritance
-
ExpressionCollection
- Implements
- Inherited Members
Properties
Count
Number of expressions in the collection.
public int Count { get; }
Property Value
this[int]
Retrieves expression by index.
public NamedExpressionElement this[int index] { get; }
Parameters
index
intExpression index.
Property Value
this[string]
Retrieves single expression by name.
public NamedExpressionElement this[string name] { get; }
Parameters
name
stringExpression name.
Property Value
- NamedExpressionElement
Matching expression.
Methods
Find(string)
Retrieves expressions by name.
public IEnumerable<NamedExpressionElement> Find(string name)
Parameters
name
stringExpression name.
Returns
- IEnumerable<NamedExpressionElement>
Matching expression or empty IEnumerable.
FindSingleOrDefault(string)
Retrieves single expression by name.
public NamedExpressionElement FindSingleOrDefault(string name)
Parameters
name
stringExpression name.
Returns
- NamedExpressionElement
Matching expression or
null
.
GetEnumerator()
Returns an enumerator for the contained expression elements.
public IEnumerator<NamedExpressionElement> GetEnumerator()
Returns
Update(IReadOnlyList<NamedExpressionElement>)
public ExpressionCollection Update(IReadOnlyList<NamedExpressionElement> expressions)
Parameters
expressions
IReadOnlyList<NamedExpressionElement>