EnumValue<T> Class

Enum Value

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.EnumValue<T>

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

Syntax

C#

public class EnumValue<T> : IEnumValue
where T : struct, new(), IConvertible

Type Parameters

T

Enum base type (byte,sbyte,short,ushort,int,uint,long or ulong)

The EnumValue<T> type exposes the following members.

Constructors

 

Name

Description

EnumValue<T>

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

Properties

 

Name

Description

EnumValue<T> Class 1:

Attributes

Gets the attributes of the IEnumValue

EnumValue<T> Class 2:

BaseType

Gets the enumeration base type (sint,byte,short,ushort,int,uint,Int64,UInt64 supported)

EnumValue<T> Class 3:

Comment

Gets the comment on the IEnumValue

EnumValue<T> Class 4:

Name

Gets the name of the Enum Value

EnumValue<T> Class 5:

RawValue

Gets the raw value of the enumeration (as byte array)

EnumValue<T> Class 6:

Size

Gets the size of the Enum value (in bytes)

EnumValue<T> Class 7:

Value

Gets the value.

Methods

 

Name

Description

EnumValue<T> Class 8:

Equals

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

EnumValue<T> Class 9:

Finalize

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

EnumValue<T> Class 10:

GetHashCode

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

EnumValue<T> Class 11:

GetType

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

EnumValue<T> Class 12:

MemberwiseClone

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

EnumValue<T> Class 13:

EnumValue<T> Class 14:

Parse

Parse Enum Type string

EnumValue<T> Class 15:

ToString

Returns a String that represents this instance.
(Overrides Object.ToString())

EnumValue<T> Class 16:

EnumValue<T> Class 17:

TryParse

Parse EnumType string

See Also

Reference

TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026