ConvertHelper Class

HD.Common

ConvertHelper Class Helper帮助文档
处理数据类型转换,数制转换、编码转换相关的类
Inheritance Hierarchy

SystemObject  HD.CommonConvertHelper

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

  NameDescription
Public methodConvertHelper
Initializes a new instance of the ConvertHelper class
Top
Methods

  NameDescription
Public methodStatic memberBytesToInt32
将byte[]转换成int
Public methodStatic memberBytesToString
使用指定字符集将byte[]转换成string
Public methodStatic memberConvertBase
实现各进制数间的转换。ConvertBase("15",10,16)表示将十进制数15转换为16进制的数。
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberRepairZero
指定字符串的固定长度,如果字符串小于固定长度, 则在字符串的前面补足零,可设置的固定长度最大为9位
Public methodStatic memberStringToBytes
使用指定字符集将string转换成byte[]
Public methodToString (Inherited from Object.)
Top
See Also

Reference