DataTypeCollectionT Class

Data type collection

Inheritance Hierarchy

SystemObject
  TwinCAT.TypeSystem.GenericDataTypeCollectionT
    TwinCAT.TypeSystemDataTypeCollection

Namespace: TwinCAT.TypeSystem.Generic
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public class DataTypeCollection<T> : IList<T>, 
    ICollection<T>, IEnumerable<T>, IEnumerable, IDataTypeCollection<T>
where T : class, IDataType

Type Parameters

T

The DataTypeCollectionT type exposes the following members.

Constructors

 

Name

Description

DataTypeCollectionT

Initializes a new instance of the DataTypeCollection class.

DataTypeCollectionT(IEnumerableT)

Initializes a new instance of the DataTypeCollectionT class.

Properties

 

Name

Description

Count

Gets the count of contained IDataTypes.

IsReadOnly

Gets a value indicating whether this instance is read only.

ItemInt32

Gets or sets the IDataType at the specified index.

ItemString

Gets the IDataType with the specified name.

Methods

 

Name

Description

Add

Adds the specified item to the collection.

AddRange

Adds a range of types

AsReadOnly

Converts the DataTypeCollectionT into a ReadOnlyCollectionT

Clear

Clears the collection.

Clone

Clones this instance.

Contains

Determines whether this DataTypeCollection contains the specified IDataType.

ContainsType

Determines whether the container contains the specified IDataType.

CopyTo

Copies the data types to the specified array, starting at the array index.

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)

GetEnumerator

Gets the enumerator.

GetHashCode

Serves as the default hash function.
(Inherited from Object)

GetType

Gets the Type of the current instance.
(Inherited from Object)

IndexOf

Determines the Index of the specified IDataType.

Insert

Inserts an IDataType into the DataTypeCollection.

LookupType

Determines the specified IDataType

MemberwiseClone

Creates a shallow copy of the current Object.
(Inherited from Object)

Remove

Removes the specified IDataType.

RemoveAt

Removes the IDataType object at the specified index.

ToString

Returns a string that represents the current object.
(Inherited from Object)

TryGetType

Tries to get the specified IDataType from the IDataTypeCollectionT.

Fields

 

Name

Description

list

Internal list of data types

Reference

TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026