ConvertHelper Class | Helper帮助文档 |
处理数据类型转换,数制转换、编码转换相关的类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public sealed class ConvertHelper
Public NotInheritable Class ConvertHelper
public ref class ConvertHelper sealed
[<SealedAttribute>] type ConvertHelper = class end
The ConvertHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ConvertHelper | Initializes a new instance of the ConvertHelper class |
Methods
Name | Description | |
---|---|---|
![]() ![]() | BytesToInt32 |
将byte[]转换成int
|
![]() ![]() | BytesToString |
使用指定字符集将byte[]转换成string
|
![]() ![]() | ConvertBase |
实现各进制数间的转换。ConvertBase("15",10,16)表示将十进制数15转换为16进制的数。
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | RepairZero |
指定字符串的固定长度,如果字符串小于固定长度,
则在字符串的前面补足零,可设置的固定长度最大为9位
|
![]() ![]() | StringToBytes |
使用指定字符集将string转换成byte[]
|
![]() | ToString | (Inherited from Object.) |
See Also