Bridge

Decimal ExplicitNarrowingExplicitExplicitExplicit Conversion (Decimal to SByte)

Defines an explicit conversion of a Decimal to an 8-bit signed integer.

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

Syntax


public static explicit operator sbyte (
	decimal value
)
Public Shared Narrowing Operator CType ( _
	value As Decimal _
) As SByte
static explicit operator signed char^ (
	Decimal^ value
)

Parameters

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

Return Value

An 8-bit signed integer that represents the converted Decimal.

Exceptions


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