EnumValueT Class

Enum Value

Inheritance Hierarchy

SystemObject
  TwinCAT.TypeSystemEnumValueT

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 EnumValueT type exposes the following members.

Constructors

 

Name

Description

EnumValueT

Initializes a new instance of the EnumValueT class.

Properties

 

Name

Description

Attributes

Gets the attributes of the IEnumValue

BaseType

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

Comment

Gets the comment on the IEnumValue

Name

Gets the name of the Enum Value

RawValue

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

Size

Gets the size of the Enum value (in bytes)

Value

Gets the value.

Methods

 

Name

Description

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)

GetHashCode

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

GetType

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

MemberwiseClone

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

Parse

Parse Enum Type string

ToString

Returns a String that represents this instance.
(Overrides ObjectToString)

TryParse

Parse EnumType string

Reference

TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026