EnumValueCollection<T> Class

Collection of EnumValues

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.EnumValueCollection<T>

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

Syntax

C#

public class EnumValueCollection<T> : IList<EnumValue<T>>, 
ICollection<EnumValue<T>>, IEnumerable<EnumValue<T>>, IEnumerable, 
IEnumValueCollection<EnumValue<T>, T>
where T : struct, new(), IConvertible

Type Parameters

T

Base type of enum

The EnumValueCollection<T> type exposes the following members.

Constructors

 

Name

Description

EnumValueCollection<T>

Initializes a new instance of the EnumValueCollection<T> class.

Properties

 

Name

Description

EnumValueCollection<T> Class 1:

Count

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

EnumValueCollection<T> Class 2:

Empty

Return an Empty Collection.

EnumValueCollection<T> Class 3:

IsReadOnly

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

EnumValueCollection<T> Class 4:

Item[Int32]

Gets or sets the element at the specified index.

EnumValueCollection<T> Class 5:

Item[String]

Gets the enumeration value str from the string representation.

Methods

 

Name

Description

EnumValueCollection<T> Class 6:

Add

Adds an item to the ICollection<T>.

EnumValueCollection<T> Class 7:

AddValue(String, T)

Adds the value.

EnumValueCollection<T> Class 8:

AddValue(String, T, String, ITypeAttributeCollection)

Adds the value.

EnumValueCollection<T> Class 9:

AsReadOnly

Gets as read only.

EnumValueCollection<T> Class 10:

Clear

Removes all items from the ICollection<T>.

EnumValueCollection<T> Class 11:

Contains(EnumValue<T>)

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

EnumValueCollection<T> Class 12:

Contains(T)

Determines whether [contains] [the specified value].

EnumValueCollection<T> Class 13:

Contains(String)

Determines whether [contains] [the specified name].

EnumValueCollection<T> Class 14:

CopyTo

Copies the entire list.

EnumValueCollection<T> Class 15:

Equals

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

EnumValueCollection<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)

EnumValueCollection<T> Class 17:

GetEnumerator

Returns an enumerator that iterates through the collection.

EnumValueCollection<T> Class 18:

GetHashCode

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

EnumValueCollection<T> Class 19:

GetNames

Gets the names.

EnumValueCollection<T> Class 20:

GetType

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

EnumValueCollection<T> Class 21:

GetValues

Gets the values.

EnumValueCollection<T> Class 22:

IndexOf

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

EnumValueCollection<T> Class 23:

Insert

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

EnumValueCollection<T> Class 24:

MemberwiseClone

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

EnumValueCollection<T> Class 25:

Parse

Parses the specified string to the Enum value.

EnumValueCollection<T> Class 26:

Remove

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

EnumValueCollection<T> Class 27:

RemoveAt

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

EnumValueCollection<T> Class 28:

ToString

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

EnumValueCollection<T> Class 29:

TryGetValue

Tries to get the value

EnumValueCollection<T> Class 30:

TryParse(String, T)

Parse the specified string to the enum value.

EnumValueCollection<T> Class 31:

TryParse(String, EnumValue<T>)

Parse the specified string to the enum value.

Operators

 

Name

Description

EnumValueCollection<T> Class 32:

EnumValueCollection<T> Class 33:

Explicit (EnumValueCollection<T> to EnumValueCollection)

Performs an explicit conversion from EnumValueCollection<T> to EnumValueCollection.

See Also

Reference

TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026