ConvertHelperToByte Method |
将类型转换为byte类型
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static byte ToByte(
Object obj,
byte defaultValue = 0
)
Public Shared Function ToByte (
obj As Object,
Optional defaultValue As Byte = 0
) As Byte
public:
static unsigned char ToByte(
Object^ obj,
unsigned char defaultValue = 0
)
static member ToByte :
obj : Object *
?defaultValue : byte
(* Defaults:
let _defaultValue = defaultArg defaultValue 0
*)
-> byte
Parameters
- obj
- Type: SystemObject
object类型 - defaultValue (Optional)
- Type: SystemByte
默认值
Return Value
Type:
Bytebyte类型
See Also