> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class DataArrayCollection

Namespace: [OpenTD.Results.Dataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset)\
Assembly: OpenTD.Results.dll

A collection of DataArrays, with some metadata describing them.

```csharp theme={null}
public class DataArrayCollection : IList<DataArray>, ICollection<DataArray>, IEnumerable<DataArray>, IEnumerable
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[DataArrayCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArrayCollection.md)

## Implements

[IList\<DataArray>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1),
[ICollection\<DataArray>](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1),
[IEnumerable\<DataArray>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1),
[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### DataArrayCollection()

```csharp theme={null}
public DataArrayCollection()
```

### DataArrayCollection(IEnumerable\<DataArray>)

```csharp theme={null}
public DataArrayCollection(IEnumerable<DataArray> collection)
```

#### Parameters

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)>

### DataArrayCollection(StandardDataSubtypes, IEnumerable\<IEnumerable\<double>>, UnitsData, IDataset, ItemIdentifier)

```csharp theme={null}
public DataArrayCollection(StandardDataSubtypes subtype, IEnumerable<IEnumerable<double>> collection, UnitsData units, IDataset sourceDataset = null, ItemIdentifier sourceItem = null)
```

#### Parameters

`subtype` [StandardDataSubtypes](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.StandardDataSubtypes.md)

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>>

`units` UnitsData

`sourceDataset` [IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.IDataset.md)

`sourceItem` [ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.ItemIdentifier.md)

### DataArrayCollection(DataSubtype, IEnumerable\<IEnumerable\<double>>, UnitsData, IDataset, ItemIdentifier)

```csharp theme={null}
public DataArrayCollection(DataSubtype subtype, IEnumerable<IEnumerable<double>> collection, UnitsData units, IDataset sourceDataset = null, ItemIdentifier sourceItem = null)
```

#### Parameters

`subtype` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>>

`units` UnitsData

`sourceDataset` [IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.IDataset.md)

`sourceItem` [ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.ItemIdentifier.md)

### DataArrayCollection(DataArrayCollection)

```csharp theme={null}
public DataArrayCollection(DataArrayCollection collection)
```

#### Parameters

`collection` [DataArrayCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArrayCollection.md)

## Properties

### AutoCommenter

```csharp theme={null}
protected AutoCommenter AutoCommenter { get; set; }
```

#### Property Value

AutoCommenter

### AutoNamer

```csharp theme={null}
protected AutoNamer AutoNamer { get; set; }
```

#### Property Value

AutoNamer

### Comment

```csharp theme={null}
public string Comment { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Count

Gets the number of elements contained in the ICollection\`1.

```csharp theme={null}
public int Count { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### DataItemCount

If all the DataArrays in the collection have the same number of items,
this will equal that. Otherwise this will be -1.

```csharp theme={null}
public virtual int DataItemCount { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### Dimension

If all the DataArrays in the collection have the same physical dimension,
this will equal that. Otherwise this will be UnitsData.UnitsType.UNITS\_NOT\_SET.

```csharp theme={null}
public virtual UnitsData.UnitsType Dimension { get; }
```

#### Property Value

UnitsData.UnitsType

### InternalSuggestedComment

```csharp theme={null}
public string InternalSuggestedComment { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### InternalSuggestedName

```csharp theme={null}
public string InternalSuggestedName { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### IsReadOnly

Gets a value indicating whether the ICollection\`1 is read-only.

```csharp theme={null}
public bool IsReadOnly { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### MaxDataItemCount

The maximum item count found in the arrays of the collection.

```csharp theme={null}
public virtual int MaxDataItemCount { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### MinDataItemCount

The minimum item count found in the arrays of the collection.

```csharp theme={null}
public virtual int MinDataItemCount { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### Name

```csharp theme={null}
public string Name { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### SourceDataItemIdentifiers

The SourceDataItemIdentifiers associated with the DataArrays in this collection.

```csharp theme={null}
public DataItemIdentifierCollection SourceDataItemIdentifiers { get; }
```

#### Property Value

[DataItemIdentifierCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataItemIdentifierCollection.md)

### SourceDataset

If all the DataArrays in the collection have the same SourceDataset, this will
equal that. Otherwise this will be null.

```csharp theme={null}
public virtual IDataset SourceDataset { get; }
```

#### Property Value

[IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.IDataset.md)

### SourceItem

If all the DataArrays in the collection have the same SourceItem, this will
equal that. Otherwise this will be null.

```csharp theme={null}
public virtual ItemIdentifier SourceItem { get; }
```

#### Property Value

[ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.ItemIdentifier.md)

### SourceItemIdentifiers

The SourceItemIdentifiers associated with the DataArrays in this collection.

```csharp theme={null}
public ItemIdentifierCollection SourceItemIdentifiers { get; }
```

#### Property Value

[ItemIdentifierCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.ItemIdentifierCollection.md)

### SourceItemSubmodel

If all the DataArrays in the collection have the same SourceItem submodel, this will
equal that. Otherwise this will be null.

```csharp theme={null}
public virtual string SourceItemSubmodel { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Subtype

If all the DataArrays in the collection have the same data subtype, this will
equal that. Otherwise this will be null.

```csharp theme={null}
public virtual DataSubtype Subtype { get; }
```

#### Property Value

[DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataSubtype.md)

### this\[int]

Gets or sets the element at the specified index.

```csharp theme={null}
public DataArray this[int index] { get; set; }
```

#### Property Value

[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

#### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`index` is not a valid index in the IList\`1.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The property is set and the IList\`1 is read-only.

## Methods

### Add(DataArray)

Adds an item to the ICollection\`1.

```csharp theme={null}
public void Add(DataArray x)
```

#### Parameters

`x` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The ICollection\`1 is read-only.

### AddRange(IEnumerable\<DataArray>)

```csharp theme={null}
public void AddRange(IEnumerable<DataArray> collection)
```

#### Parameters

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)>

### Clear()

Removes all items from the ICollection\`1.

```csharp theme={null}
public void Clear()
```

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The ICollection\`1 is read-only.

### Contains(DataArray)

Determines whether the ICollection\`1 contains a specific value.

```csharp theme={null}
public bool Contains(DataArray item)
```

#### Parameters

`item` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The object to locate in the ICollection\`1.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if `item` is found in the ICollection\`1; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### CopyTo(DataArray\[], int)

Copies the elements of the ICollection\`1 to an Array, starting at a particular Array index.

```csharp theme={null}
public void CopyTo(DataArray[] array, int arrayIndex)
```

#### Parameters

`array` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)\[]

The one-dimensional Array that is the destination of the elements copied from ICollection\`1. The Array must have zero-based indexing.

`arrayIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The zero-based index in `array` at which copying begins.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`array` is [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`arrayIndex` is less than 0.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

The number of elements in the source ICollection\`1 is greater than the available space from `arrayIndex` to the end of the destination `array`.

### Filter(DataItemIdentifierCollection)

```csharp theme={null}
public DataArrayCollection Filter(DataItemIdentifierCollection dataItems)
```

#### Parameters

`dataItems` [DataItemIdentifierCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataItemIdentifierCollection.md)

#### Returns

[DataArrayCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArrayCollection.md)

### GetEnumerator()

Returns an enumerator that iterates through the collection.

```csharp theme={null}
public IEnumerator<DataArray> GetEnumerator()
```

#### Returns

[IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1)\<[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)>

An enumerator that can be used to iterate through the collection.

### GetSelfSuggestedComment()

```csharp theme={null}
protected virtual string GetSelfSuggestedComment()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GetSelfSuggestedName()

```csharp theme={null}
protected virtual string GetSelfSuggestedName()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GetTranspose()

```csharp theme={null}
public virtual DataArrayCollection GetTranspose()
```

#### Returns

[DataArrayCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArrayCollection.md)

### GetValues()

```csharp theme={null}
public virtual List<List<double>> GetValues()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>>

### GetValues(UnitsData)

```csharp theme={null}
public virtual List<List<double>> GetValues(UnitsData units)
```

#### Parameters

`units` UnitsData

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>>

### IndexOf(DataArray)

Determines the index of a specific item in the IList\`1.

```csharp theme={null}
public int IndexOf(DataArray item)
```

#### Parameters

`item` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The object to locate in the IList\`1.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The index of `item` if found in the list; otherwise, -1.

### Insert(int, DataArray)

Inserts an item to the IList\`1 at the specified index.

```csharp theme={null}
public void Insert(int index, DataArray item)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The zero-based index at which `item` should be inserted.

`item` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

The object to insert into the IList\`1.

#### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`index` is not a valid index in the IList\`1.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The IList\`1 is read-only.

### InsertRange(int, IEnumerable\<DataArray>)

```csharp theme={null}
public void InsertRange(int index, IEnumerable<DataArray> collection)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)>

### Remove(DataArray)

Removes the first occurrence of a specific object from the ICollection\`1.

```csharp theme={null}
public bool Remove(DataArray x)
```

#### Parameters

`x` [DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if `item` was successfully removed from the ICollection`1; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). This method also returns [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if <code className="paramref">item</code> is not found in the original ICollection`1.

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The ICollection\`1 is read-only.

### RemoveAt(int)

Removes the IList\`1 item at the specified index.

```csharp theme={null}
public void RemoveAt(int index)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The zero-based index of the item to remove.

#### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`index` is not a valid index in the IList\`1.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The IList\`1 is read-only.

### RemoveRange(int, int)

```csharp theme={null}
public void RemoveRange(int index, int count)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`count` [int](https://learn.microsoft.com/dotnet/api/system.int32)

### ToString()

Returns a string that represents the current object.

```csharp theme={null}
public override string ToString()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current object.

## See Also

IAutoName,
[ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)\<T>,
[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<T>,
[IList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)\<T>
