Reports for WinForms | ComponentOne
C1.C1Report.CustomFields.4 Assembly / C1.C1Report.CustomFields.Maps Namespace / Util Class / GetBool Method
The object to convert.
The default value.

In This Topic
    GetBool Method
    In This Topic
    Converts an object to a boolean value.
    Syntax
    'Declaration
     
    Public Shared Function GetBool( _
       ByVal value As Object, _
       ByVal defaultValue As Boolean _
    ) As Boolean
    public static bool GetBool( 
       object value,
       bool defaultValue
    )

    Parameters

    value
    The object to convert.
    defaultValue
    The default value.

    Return Value

    The converted value, or defaultValue if the object could not be converted.
    See Also