Summary

public bool ToBoolean(bool defaultValue)

Attempts to get this value as a bool . If the value is empty or cannot be understood as this data type, the defaultValue will be returned instead.

Returns

bool

Parameters