Class ConsoleCommandCollection
Represents a collection of console commands.
[EventParameter]
public class ConsoleCommandCollection : IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
- Inheritance
-
ConsoleCommandCollection
- Implements
- Inherited Members
Constructors
ConsoleCommandCollection(FlatHashSetStringView)
Represents a collection of console commands.
public ConsoleCommandCollection(FlatHashSetStringView set)
Parameters
Properties
Count
Gets the number of commands in this collection.
public int Count { get; }
Property Value
Methods
Add(string)
Adds a command to this collection.
public void Add(string command)
Parameters
commandstringThe command to add to the collection.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<string> GetEnumerator()
Returns
- IEnumerator<string>
An enumerator that can be used to iterate through the collection.