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: 4.3.0.0
Syntax
C#
public class EnumValueCollection<T> : IList<EnumValue<T>>,
ICollection<EnumValue<T>>, IEnumerable<EnumValue<T>>, IEnumerable
where T : IConvertible
VB
Public Class EnumValueCollection(Of T As IConvertible)
Implements IList(Of EnumValue(Of T)), ICollection(Of EnumValue(Of T)),
IEnumerable(Of EnumValue(Of T)), IEnumerable
Type Parameters
| 
                   T  | 
                   Base type of enum  | 
The EnumValueCollection.T. type exposes the following members.
Properties
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                      | 
                   Gets the number of elements contained in the ICollection.T..  | |
| 
                   
                      | 
                   Gets a value indicating whether the ICollection.T. is read-only.  | |
| 
                   
                      | 
                   Gets or sets the element at the specified index.  | 
Methods
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                      | 
                   Adds an item to the ICollection.T..  | |
| 
                   
                      | 
                   Gets as read only.  | |
| 
                   
                      | 
                   Removes all items from the ICollection.T..  | |
| 
                   
                      | 
                   Determines whether [contains] [the specified name].  | |
| 
                   
                      | 
                   Determines whether [contains] [the specified value].  | |
| 
                   
                      | 
                   Determines whether the ICollection.T. contains a specific value.  | |
| 
                   
                      | 
                   Copies the entire list.  | |
| 
                   
                      | 
                   Determines whether the specified object is equal to the current object. (Inherited from Object.)  | |
| 
                   
                      | 
                   Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)  | |
| 
                   
                      | 
                   Returns an enumerator that iterates through the collection.  | |
| 
                   
                      | 
                   Serves as the default hash function. (Inherited from Object.)  | |
| 
                   
                      | 
                   Gets the names.  | |
| 
                   
                      | 
                   Gets the Type of the current instance. (Inherited from Object.)  | |
| 
                   
                      | 
                   Gets the values.  | |
| 
                   
                      | 
                   Determines the index of a specific item in the IList.T..  | |
| 
                   
                      | 
                   Inserts an item to the IList.T. at the specified index.  | |
| 
                   
                      | 
                   Creates a shallow copy of the current Object. (Inherited from Object.)  | |
| 
                   
                      | 
                   Parses the specified string to the Enum value.  | |
| 
                   
                      | 
                   Removes the first occurrence of a specific object from the ICollection.T..  | |
| 
                   
                      | 
                   Removes the IList.T. item at the specified index.  | |
| 
                   
                      | 
                   Returns a string that represents the current object. (Inherited from Object.)  | |
| 
                   
                      | 
                   Tries the get information.  | |
| 
                   
                      | 
                   Parse the specified string to the enum value.  | 
Operators
| 
                   
  | 
                   Name  | 
                   Description  | 
|---|---|---|
| 
                   
                     
                      | 
                   Performs an explicit conversion from EnumValueCollection.T. to EnumValueCollection.  |