EnumValue.T. Class

Enum Value

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.EnumValue.T.
Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public class EnumValue<T> : IEnumValue
where T : IConvertible

VB

Public Class EnumValue(Of T As IConvertible)
    Implements IEnumValue

Type Parameters

T

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

The EnumValue.T. type exposes the following members.

Properties

 

Name

Description

ManagedBaseType

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

Name

Gets the name of the Enum Value

Primitive

Gets the value.

RawValue

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

Size

Gets the size of the Enum value (in bytes)

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 Object.ToString..)

TryParse

Parse EnumType string

Reference

TwinCAT.TypeSystem Namespace