ObjectExtenstions 方法 |
ObjectExtenstions 类型公开以下成员。
名称 | 说明 | |
---|---|---|
FormatDateTime |
将数据以时间格式并对其格式化
| |
FormatNumber |
将数据以数值方式对数据格式化
| |
FormatString |
将数据以字符串格式对数据格式化
| |
HasLayeredStyle | ||
ToBool |
将数据转换成Bool,如果转换失败返回False
| |
ToDateTime |
将数据转换成DateTime,如果转换失败返回空的时间
| |
ToDouble |
将数据转换成Double,如果转换失败返回0
| |
ToEnumT |
将数据转换成枚举,如果转换失败则返回默认值
| |
ToFloat |
将数据转换成Float,如果转换失败返回0
| |
ToInt(Object) |
将数据转换成int,如果转换失败返回0
| |
ToInt(Object, Int32) |
数据转换成int,如果转换失败,返回errorResult
| |
ToLong |
将数据转换成Long,如果转换失败返回0
|