Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 2.0
System
Enum Structure
Enum Methods
ToObject Method
Collapse All/Expand All Collapse All
.NET Framework Class Library
Enum.ToObject Method

Returns an instance of the specified enumeration type set to the specified value.

Name Description
Enum.ToObject (Type, Byte) Returns an instance of the specified enumeration type set to the specified 8-bit unsigned integer value.
Enum.ToObject (Type, Int16) Returns an instance of the specified enumeration type set to the specified 16-bit signed integer value.
Enum.ToObject (Type, Int32) Returns an instance of the specified enumeration type set to the specified 32-bit signed integer value.
Enum.ToObject (Type, Int64) Returns an instance of the specified enumeration type set to the specified 64-bit signed integer value.
Enum.ToObject (Type, Object) Returns an instance of the specified enumeration set to the specified value.

Supported by the .NET Compact Framework.

Enum.ToObject (Type, SByte) Returns an instance of the specified enumeration type set to the specified 8-bit signed integer value.
Enum.ToObject (Type, UInt16) Returns an instance of the specified enumeration type set to the specified 16-bit unsigned integer value.
Enum.ToObject (Type, UInt32) Returns an instance of the specified enumeration type set to the specified 32-bit unsigned integer value.
Enum.ToObject (Type, UInt64) Returns an instance of the specified enumeration type set to the specified 64-bit unsigned integer value.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker