Bridge

Decimal ExplicitNarrowingExplicitExplicitExplicit Conversion (Decimal to UInt16)

Defines an explicit conversion of a Decimal to a 16-bit unsigned integer.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public static explicit operator ushort (
	decimal value
)
Public Shared Narrowing Operator CType ( _
	value As Decimal _
) As UShort
static explicit operator unsigned short^ (
	Decimal^ value
)

Parameters

value
Type: System..::..Decimal
The value to convert.

Return Value

A 16-bit unsigned integer that represents the converted Decimal.

Exceptions


ExceptionCondition
System..::..OverflowExceptionvalue is greater than MaxValue or less than MinValue.