Conversions.ToDecimal Method (Boolean)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Converts a Boolean value to a Decimal value.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
Public Shared Function ToDecimal ( _
    Value As Boolean _
) As Decimal
public static decimal ToDecimal(
    bool Value
)

Parameters

Return Value

Type: System.Decimal
The Decimal value of the Boolean value.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.