NullableTypes Class Library

NullableDecimal Constructor (Int32[])

Initializes a new instance of the NullableDecimal structure using a decimal value represented in binary and contained in a specified array.

[Visual Basic]
Overloads Public Sub New( _
   ByVal bits As Integer() _
)
[C#]
public NullableDecimal(
   int[] bits
);

Parameters

bits
An array representing in binary a decimal value to be stored in the Value property of the new NullableDecimal structure.

Exceptions

Exception TypeCondition
ArgumentNullExceptionbits is a null reference (Nothing in Visual Basic).
ArgumentException The length of the bits is not 4

-or-

the representation of the decimal value in bits is not valid.

See Also

NullableDecimal Class | NullableTypes Namespace | NullableDecimal Constructor Overload List