C# Class MS_PCCRC_TestTool.Utility

TODO: Update summary.
Datei anzeigen Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method 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 method

public static DownloadHTTPFile ( string server, string file ) : byte[]
server string
file string
return byte[]

ShowMessageBox() public static method

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

ToHexString() public static method

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
return string

ToHexString() public static method

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.
return string