DataTypeCollection.T. Class

Data type collection

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.Generic.DataTypeCollection.T.
    TwinCAT.TypeSystem.DataTypeCollection
Namespace:  TwinCAT.TypeSystem.Generic
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

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

VB

Public Class DataTypeCollection(Of T As IDataType)
    Implements IList(Of T), ICollection(Of T), 
    IEnumerable(Of T), IEnumerable, IDataTypeContainer(Of T)

Type Parameters

T

The DataTypeCollection.T. type exposes the following members.

Constructors

 

Name

Description

DataTypeCollection.T. Class 1:

DataTypeCollection.T..

Initializes a new instance of the DataTypeCollection class.

DataTypeCollection.T. Class 2:

DataTypeCollection.T.(IEnumerable.T.)

Initializes a new instance of the DataTypeCollection.T. class.

Properties

 

Name

Description

DataTypeCollection.T. Class 3:

Count

Gets the count of contained IDataTypes.

DataTypeCollection.T. Class 4:

IsReadOnly

Gets a value indicating whether this instance is read only.

DataTypeCollection.T. Class 5:

Item.Int32.

Gets or sets the IDataType at the specified index.

DataTypeCollection.T. Class 6:

Item.String.

Gets the IDataType with the specified name.

Methods

 

Name

Description

DataTypeCollection.T. Class 7:

Add

Adds the specified item to the collection.

DataTypeCollection.T. Class 8:

AddRange

Adds a range of types

DataTypeCollection.T. Class 9:

AsReadOnly

Converts the DataTypeCollection.T. into a ReadOnlyCollection.T.

DataTypeCollection.T. Class 10:

Clear

Clears the collection.

DataTypeCollection.T. Class 11:

Clone

Clones this instance.

DataTypeCollection.T. Class 12:

Contains

Determines whether this DataTypeCollection contains the specified IDataType.

DataTypeCollection.T. Class 13:

ContainsType

Determines whether the container contains the specified IDataType.

DataTypeCollection.T. Class 14:

CopyTo

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

DataTypeCollection.T. Class 15:

Equals

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

DataTypeCollection.T. Class 16:

Finalize

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

DataTypeCollection.T. Class 17:

GetEnumerator

Gets the enumerator.

DataTypeCollection.T. Class 18:

GetHashCode

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

DataTypeCollection.T. Class 19:

GetType

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

DataTypeCollection.T. Class 20:

IndexOf

Determines the Index of the specified IDataType.

DataTypeCollection.T. Class 21:

Insert

Inserts an IDataType into the DataTypeCollection.

DataTypeCollection.T. Class 22:

LookupType

Determines the specified IDataType

DataTypeCollection.T. Class 23:

MemberwiseClone

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

DataTypeCollection.T. Class 24:

Remove

Removes the specified IDataType.

DataTypeCollection.T. Class 25:

RemoveAt

Removes the IDataType object at the specified index.

DataTypeCollection.T. Class 26:

ToString

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

DataTypeCollection.T. Class 27:

TryGetType

Tries to get the specified IDataType from the IDataTypeContainer.T..

Fields

 

Name

Description

DataTypeCollection.T. Class 28:

list

Internal list of data types

DataTypeCollection.T. Class 29:

nameDict

Dictionary (Type Name --> DataType)

DataTypeCollection.T. Class 30:

readOnly

Indicates that the DataTypeCollection.T. is readonly

Reference

TwinCAT.TypeSystem.Generic Namespace