NamespaceCollection.N, T. Class

Generic class for Namespace collections

Inheritance Hierarchy

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

Syntax

C#

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

VB

Public Class NamespaceCollection(Of N As {Object, INamespace(Of T)}, T As IDataType)
    Implements IList(Of N), ICollection(Of N), 
    IEnumerable(Of N), IEnumerable, INamespaceCollection(Of N, T)

Type Parameters

N

T

The NamespaceCollection.N, T. type exposes the following members.

Constructors

 

Name

Description

NamespaceCollection.N, T. Class 1:

NamespaceCollection.N, T.

Initializes a new instance of the NamespaceCollection.N, T. class.

Properties

 

Name

Description

NamespaceCollection.N, T. Class 2:

AllTypes

Gets all types included in all namespaces.

NamespaceCollection.N, T. Class 3:

Count

Gets the number of elements contained in the ICollection.T..

NamespaceCollection.N, T. Class 4:

IsReadOnly

Gets a value indicating whether the ICollection.T. is read-only.

NamespaceCollection.N, T. Class 5:

Item.Int32.

Gets or sets the element at the specified index.

NamespaceCollection.N, T. Class 6:

Item.String.

Gets or sets the element at the specified index.

Methods

 

Name

Description

NamespaceCollection.N, T. Class 7:

Add

Adds an item to the ICollection.T..

NamespaceCollection.N, T. Class 8:

Clear

Removes all items from the ICollection.T..

NamespaceCollection.N, T. Class 9:

Contains

Determines whether the ICollection.T. contains a specific value.

NamespaceCollection.N, T. Class 10:

ContainsNamespace

Determines whether the specified name contains namespace.

NamespaceCollection.N, T. Class 11:

CopyTo

Copies to.

NamespaceCollection.N, T. Class 12:

Equals

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

NamespaceCollection.N, T. Class 13:

Finalize

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

NamespaceCollection.N, T. Class 14:

GetEnumerator

Returns an enumerator that iterates through the collection.

NamespaceCollection.N, T. Class 15:

GetHashCode

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

NamespaceCollection.N, T. Class 16:

GetType

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

NamespaceCollection.N, T. Class 17:

IndexOf

Determines the index of a specific item in the IList.T..

NamespaceCollection.N, T. Class 18:

Insert

Inserts an item to the IList.T. at the specified index.

NamespaceCollection.N, T. Class 19:

MemberwiseClone

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

NamespaceCollection.N, T. Class 20:

Remove

Removes the first occurrence of a specific object from the ICollection.T..

NamespaceCollection.N, T. Class 21:

RemoveAt

Removes the IList.T. item at the specified index.

NamespaceCollection.N, T. Class 22:

ToString

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

NamespaceCollection.N, T. Class 23:

TryGetNamespace

Tries to get the namespace object

NamespaceCollection.N, T. Class 24:

TryGetType

Tries to get the specified type.

NamespaceCollection.N, T. Class 25:

TryGetTypeByFullName

Tries to get the data type by full name.

Fields

 

Name

Description

NamespaceCollection.N, T. Class 26:

allTypes

Dictionary FullPath -> IDataType

NamespaceCollection.N, T. Class 27:

list

List of Namespaces

NamespaceCollection.N, T. Class 28:

namespaceDict

Dictionary NamespaceName --> INamespace

NamespaceCollection.N, T. Class 29:

readOnly

Read only indicator

Reference

TwinCAT.TypeSystem.Generic Namespace