Class TerminalCollection
Represents a collection of terminals.
public class TerminalCollection : IEnumerable<ITerminal>, IEnumerable
- Inheritance
-
TerminalCollection
- Implements
- Inherited Members
Properties
this[int]
Gets the element at the specified index.
public ITerminal this[int index] { get; }
Parameters
index
intThe zero-based index of the element to get.
Property Value
- ITerminal
The element at the specified index.
Methods
Add(ITerminal)
Adds a terminal to the collection.
public void Add(ITerminal terminal)
Parameters
terminal
ITerminalThe terminal to add to the collection.
Exceptions
- ArgumentNullException
Thrown if
terminal
is null.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<ITerminal> GetEnumerator()
Returns
- IEnumerator<ITerminal>
An enumerator that can be used to iterate through the collection.