ConvertHelperToBool Method |
将类型装换为bool类型
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static bool ToBool(
Object obj,
bool defaultValue = false
)
Public Shared Function ToBool (
obj As Object,
Optional defaultValue As Boolean = false
) As Boolean
public:
static bool ToBool(
Object^ obj,
bool defaultValue = false
)
static member ToBool :
obj : Object *
?defaultValue : bool
(* Defaults:
let _defaultValue = defaultArg defaultValue false
*)
-> bool
Parameters
- obj
- Type: SystemObject
object类型 - defaultValue (Optional)
- Type: SystemBoolean
默认值
Return Value
Type:
Booleanbool类型
See Also