NamespaceCollectionT Class

Generic class for Namespace collections

Inheritance Hierarchy

SystemObject
  TwinCAT.TypeSystem.GenericNamespaceCollectionT

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

Syntax

C#

public class NamespaceCollection<T> : IList<INamespace<T>>, 
    ICollection<INamespace<T>>, IEnumerable<INamespace<T>>, IEnumerable
where T : class, IDataType

Type Parameters

T

The NamespaceCollectionT type exposes the following members.

Constructors

 

Name

Description

NamespaceCollectionT

Initializes a new instance of the NamespaceCollectionT class.

Properties

 

Name

Description

AllTypes

Gets all types included in all namespaces.

Count

Gets the number of elements contained in the ICollectionT.

InnerAllTypes

Dictionary FullPath -> IDataType

IsReadOnly

Gets a value indicating whether the ICollectionT is read-only.

ItemInt32

Gets or sets the element at the specified index.

ItemString

Gets or sets the element at the specified index.

Methods

 

Name

Description

Add

Adds an item to the ICollectionT.

Clear

Removes all items from the ICollectionT.

Contains

Determines whether the ICollectionT contains a specific value.

ContainsNamespace

Determines whether the specified name contains namespace.

CopyTo

Copies to.

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

Returns an enumerator that iterates through the collection.

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 a specific item in the IListT.

Insert

Inserts an item to the IListT at the specified index.

MemberwiseClone

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

Remove

Removes the first occurrence of a specific object from the ICollectionT.

RemoveAt

Removes the IListT item at the specified index.

ToString

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

TryGetNamespace

Tries to get the namespace object

TryGetType

Tries to get the specified type.

TryGetTypeByFullName

Tries to get the data type by full name.

Reference

TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026