C# Class MS_PCCRC_TestTool.Utility

TODO: Update summary.
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites

Méthodes publiques

Méthode Description
DownloadHTTPFile ( string server, string file ) : byte[]
ShowMessageBox ( string msg, MessageBoxIcon icon ) : void

Show message box.

ToHexString ( byte data ) : string

Transfer a byte array to a hex string. Example from a byte array { 0x0a, 0x0b, 0x0c }, the return is a string 0A0B0C.

ToHexString ( byte data, int start, int length ) : string

Transfer a byte array to a hex string. Example from a byte array { 0x0a, 0x0b, 0x0c }, the return is a string 0A0B0C.

Method Details

DownloadHTTPFile() public static méthode

public static DownloadHTTPFile ( string server, string file ) : byte[]
server string
file string
Résultat byte[]

ShowMessageBox() public static méthode

Show message box.
public static ShowMessageBox ( string msg, MessageBoxIcon icon ) : void
msg string
icon MessageBoxIcon
Résultat void

ToHexString() public static méthode

Transfer a byte array to a hex string. Example from a byte array { 0x0a, 0x0b, 0x0c }, the return is a string 0A0B0C.
public static ToHexString ( byte data ) : string
data byte The input byte array
Résultat string

ToHexString() public static méthode

Transfer a byte array to a hex string. Example from a byte array { 0x0a, 0x0b, 0x0c }, the return is a string 0A0B0C.
public static ToHexString ( byte data, int start, int length ) : string
data byte The input byte array
start int The start index.
length int The data length of convert to string.
Résultat string