ConvertHelperToInt Method |
将类型装换为int类型
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static int ToInt(
Object obj,
int defaultValue = 0
)
Public Shared Function ToInt (
obj As Object,
Optional defaultValue As Integer = 0
) As Integer
public:
static int ToInt(
Object^ obj,
int defaultValue = 0
)
static member ToInt :
obj : Object *
?defaultValue : int
(* Defaults:
let _defaultValue = defaultArg defaultValue 0
*)
-> int
Parameters
- obj
- Type: SystemObject
object类型 - defaultValue (Optional)
- Type: SystemInt32
默认值
Return Value
Type:
Int32int类型
See Also