Class ItemIdentifierCollection
Last update: 09.03.2026Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll
Collection of ItemIdentifiers
public class ItemIdentifierCollection : IList<ItemIdentifier>, ICollection<ItemIdentifier>, IEnumerable<ItemIdentifier>, IEnumerable
Inheritance
object ← ItemIdentifierCollection
Implements
IList<ItemIdentifier>, ICollection<ItemIdentifier>, IEnumerable<ItemIdentifier>, IEnumerable
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
ItemIdentifierCollection(IEnumerable<ItemIdentifier>)
public ItemIdentifierCollection(IEnumerable<ItemIdentifier> collection)
Parameters
collection IEnumerable<ItemIdentifier>
ItemIdentifierCollection()
public ItemIdentifierCollection()
ItemIdentifierCollection(string, ThermalDesktop)
Initializes a new instance of the
public ItemIdentifierCollection(string domainName, ThermalDesktop td)
Parameters
domainName string
td ThermalDesktop
ItemIdentifierCollection(DataTypes, string, IDataset)
Initializes a new instance of the
public ItemIdentifierCollection(DataTypes dataType, string submodelName, IDataset dataset)
Parameters
dataType DataTypes
submodelName string
dataset IDataset
ItemIdentifierCollection(IEnumerable<string>)
public ItemIdentifierCollection(IEnumerable<string> dataItemNames)
Parameters
dataItemNames IEnumerable<string>
ItemIdentifierCollection(params string[])
public ItemIdentifierCollection(params string[] sindaNames)
Parameters
sindaNames string[]
Properties
AutoCommenter
protected AutoCommenter AutoCommenter { get; set; }
Property Value
AutoCommenter
AutoNamer
protected AutoNamer AutoNamer { get; set; }
Property Value
AutoNamer
Comment
public string Comment { get; set; }
Property Value
Count
Gets the number of elements contained in the
public int Count { get; }
Property Value
Id
If all the ItemIdentifiers in the collection have the same Id, this will equal that. Otherwise this will be -1.
public long Id { get; }
Property Value
InternalSuggestedComment
public string InternalSuggestedComment { get; set; }
Property Value
InternalSuggestedName
public string InternalSuggestedName { get; set; }
Property Value
IsReadOnly
Gets a value indicating whether the
public bool IsReadOnly { get; }
Property Value
Name
public string Name { get; set; }
Property Value
RecordNum
If all the ItemRecordNumentifiers in the collection have the same RecordNum, this will equal that. Otherwise this will be -1.
public long RecordNum { get; }
Property Value
RegisterName
If all the ItemIdentifiers in the collection have the same RegisterName, this will equal that. Otherwise this will be null.
public string RegisterName { get; }
Property Value
Submodel
If all the ItemIdentifiers in the collection have the same Submodel, this will equal that. Otherwise this will be null.
public string Submodel { get; }
Property Value
Type
If all the ItemIdentifiers in the collection have the same Type, this will equal that. Otherwise this will be NOT_SET.
public ItemIdentifier.Types Type { get; }
Property Value
this[int]
Gets or sets the element at the specified index.
public ItemIdentifier this[int index] { get; set; }
Property Value
Exceptions
index is not a valid index in the
The property is set and the
Methods
Add(ItemIdentifier)
Adds an item to the
public void Add(ItemIdentifier item)
Parameters
item ItemIdentifier
The object to add to the
Exceptions
The
AddRange(IEnumerable<ItemIdentifier>)
public void AddRange(IEnumerable<ItemIdentifier> collection)
Parameters
collection IEnumerable<ItemIdentifier>
Clear()
Removes all items from the
public void Clear()
Exceptions
The
Contains(ItemIdentifier)
Determines whether the
public bool Contains(ItemIdentifier item)
Parameters
item ItemIdentifier
The object to locate in the
Returns
true if item is found in the
CopyTo(ItemIdentifier[], int)
Copies the elements of the
public void CopyTo(ItemIdentifier[] array, int arrayIndex)
Parameters
array ItemIdentifier[]
The one-dimensional
arrayIndex int
The zero-based index in array at which copying begins.
Exceptions
array is null.
arrayIndex is less than 0.
The number of elements in the source arrayIndex to the end of the destination array.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<ItemIdentifier> GetEnumerator()
Returns
An enumerator that can be used to iterate through the collection.
GetSelfSuggestedComment()
protected virtual string GetSelfSuggestedComment()
Returns
GetSelfSuggestedName()
protected virtual string GetSelfSuggestedName()
Returns
IndexOf(ItemIdentifier)
Determines the index of a specific item in the
public int IndexOf(ItemIdentifier item)
Parameters
item ItemIdentifier
The object to locate in the
Returns
The index of item if found in the list; otherwise, -1.
Insert(int, ItemIdentifier)
Inserts an item to the
public void Insert(int index, ItemIdentifier item)
Parameters
index int
The zero-based index at which item should be inserted.
item ItemIdentifier
The object to insert into the
Exceptions
index is not a valid index in the
The
InsertRange(int, IEnumerable<ItemIdentifier>)
public void InsertRange(int index, IEnumerable<ItemIdentifier> collection)
Parameters
index int
collection IEnumerable<ItemIdentifier>
Remove(ItemIdentifier)
Removes the first occurrence of a specific object from the
public bool Remove(ItemIdentifier item)
Parameters
item ItemIdentifier
The object to remove from the
Returns
true if item was successfully removed from the item is not found in the original
Exceptions
The
RemoveAt(int)
Removes the
public void RemoveAt(int index)
Parameters
index int
The zero-based index of the item to remove.
Exceptions
index is not a valid index in the
The
RemoveRange(int, int)
public void RemoveRange(int index, int count)
Parameters
index int
count int
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.