ConvertHelper Methods

HD.Common

ConvertHelper Methods Helper帮助文档

The ConvertHelper type exposes the following members.

Methods

  Name Description
Public method Static member BytesToInt32
将byte[]转换成int
Public method Static member BytesToString
使用指定字符集将byte[]转换成string
Public method Static member ConvertBase
实现各进制数间的转换。ConvertBase("15",10,16)表示将十进制数15转换为16进制的数。
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member RepairZero
指定字符串的固定长度,如果字符串小于固定长度, 则在字符串的前面补足零,可设置的固定长度最大为9位
Public method Static member StringToBytes
使用指定字符集将string转换成byte[]
Public method ToString (Inherited from Object.)
Top
See Also

Reference