C# Enum ToObject(Type, Int16)

Description

Enum ToObject(Type, Int16) converts the specified 16-bit signed integer to an enumeration member.

Syntax

Enum.ToObject(Type, Int16) has the following syntax.


[ComVisibleAttribute(true)]/*from w  w w.  ja  v a2 s .  c  o m*/
public static Object ToObject(
  Type enumType,
  short value
)

Parameters

Enum.ToObject(Type, Int16) has the following parameters.

  • enumType - The enumeration type to return.
  • value - The value to convert to an enumeration member.

Returns

Enum.ToObject(Type, Int16) method returns An instance of the enumeration set to value.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version