ConvertHelper.ConvertBase Method

HD.Common

ConvertHelperConvertBase Method Helper帮助文档
实现各进制数间的转换。ConvertBase("15",10,16)表示将十进制数15转换为16进制的数。

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static string ConvertBase(
	string value,
	int from,
	int to
)
Public Shared Function ConvertBase ( 
	value As String,
	from As Integer,
	to As Integer
) As String
public:
static String^ ConvertBase(
	String^ value, 
	int from, 
	int to
)
static member ConvertBase : 
        value : string * 
        from : int * 
        to : int -> string 

Parameters

value
Type: SystemString
要转换的值,即原值
from
Type: SystemInt32
原值的进制,只能是2,8,10,16四个值。
to
Type: SystemInt32
要转换到的目标进制,只能是2,8,10,16四个值。

Return Value

Type: String

[Missing <returns> documentation for "M:HD.Common.ConvertHelper.ConvertBase(System.String,System.Int32,System.Int32)"]

See Also

Reference