System.Decimal.op_Explicit Method
Perform an explicit conversion of a decimal value to long .

Syntax

public static explicit operator long (decimal value)

Parameters

value
The decimal value to convert to long .

Returns

A long containing value rounded towards zero to the nearest integer.

Exceptions

TypeReason
OverflowExceptionThe resulting integer value is greater than long.MaxValue or less than long.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0