ConvertHelperToString Method |
安全将类型装换为字符串
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static string ToString(
Object obj,
string defaultValue = ""
)
Public Shared Function ToString (
obj As Object,
Optional defaultValue As String = ""
) As String
public:
static String^ ToString(
Object^ obj,
String^ defaultValue = L""
)
static member ToString :
obj : Object *
?defaultValue : string
(* Defaults:
let _defaultValue = defaultArg defaultValue ""
*)
-> string
Parameters
- obj
- Type: SystemObject
object类型 - defaultValue (Optional)
- Type: SystemString
默认值
Return Value
Type:
Stringint类型
See Also