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

EnumValue.T. Class 1:

ManagedBaseType

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

EnumValue.T. Class 2:

Name

Gets the name of the Enum Value

EnumValue.T. Class 3:

Primitive

Gets the value.

EnumValue.T. Class 4:

RawValue

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

EnumValue.T. Class 5:

Size

Gets the size of the Enum value (in bytes)

Methods

 

Name

Description

EnumValue.T. Class 6:

Equals

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

EnumValue.T. Class 7:

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 8:

GetHashCode

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

EnumValue.T. Class 9:

GetType

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

EnumValue.T. Class 10:

MemberwiseClone

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

EnumValue.T. Class 11:

EnumValue.T. Class 12:

Parse

Parse Enum Type string

EnumValue.T. Class 13:

ToString

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

EnumValue.T. Class 14:

EnumValue.T. Class 15:

TryParse

Parse EnumType string

Reference

TwinCAT.TypeSystem Namespace