Class ParsedExpressionDiscardedArguments
- Namespace
- LfrlAnvil.Computable.Expressions
- Assembly
- LfrlAnvil.Computable.Expressions.dll
Represents a collection of named discarded arguments of IParsedExpression<TArg, TResult>.
public sealed class ParsedExpressionDiscardedArguments : IReadOnlyCollection<StringSegment>, IEnumerable<StringSegment>, IEnumerable- Inheritance
- 
      
      ParsedExpressionDiscardedArguments
- Implements
- Inherited Members
Constructors
ParsedExpressionDiscardedArguments(IEnumerable<StringSegment>)
Creates a new ParsedExpressionDiscardedArguments instance.
public ParsedExpressionDiscardedArguments(IEnumerable<StringSegment> set)Parameters
- setIEnumerable<StringSegment>
- Source collection. 
Fields
Empty
Represents an empty collection of named discarded arguments.
public static readonly ParsedExpressionDiscardedArguments EmptyField Value
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }Property Value
- int
- The number of elements in the collection. 
Methods
Contains(StringSegment)
Checks whether or not this collection contains an argument with the specified name.
[Pure]
public bool Contains(StringSegment name)Parameters
- nameStringSegment
- Name to check. 
Returns
- bool
- true when an argument exists, otherwise false. 
GetEnumerator()
Returns an enumerator that iterates through the collection.
[Pure]
public IEnumerator<StringSegment> GetEnumerator()Returns
- IEnumerator<StringSegment>
- An enumerator that can be used to iterate through the collection.