Appearance
ToBoolean Method
Definition
- Namespace:
JASE - Assembly:
JASE.ReflectionTools.dll
Overloads
| Name | Description |
|---|---|
bool ToBoolean(bool? value) | Converts a nullable Boolean to a non-nullable Boolean. |
bool ToBoolean(object value) | Converts the specified value to a Boolean using internal conversion rules. |
bool ToBoolean(bool? value)
csharp
bool ToBoolean(bool? value)Converts a nullable Boolean to a non-nullable Boolean.
Parameters
| Name | Description |
|---|---|
value | The nullable boolean to convert. |
Returns
if value is , otherwise the underlying value.
bool ToBoolean(object value)
csharp
bool ToBoolean(object value)Converts the specified value to a Boolean using internal conversion rules.
Parameters
| Name | Description |
|---|---|
value | The value to convert. |
Returns
if value is , otherwise the converted boolean.