C# Class Netduino.WebServer.Core.Utilities.Format

显示文件 Open project: martinbuberl/Netduino

Public Methods

Method Description
BoolToYesNo ( bool value ) : string

Returns "Yes" if true; otherwise "No".

GetPhysicalAddress ( byte byteArray, char seperator = '-' ) : string

Formats a byte array to a physical address (MAC address).

Method Details

BoolToYesNo() public static method

Returns "Yes" if true; otherwise "No".
public static BoolToYesNo ( bool value ) : string
value bool The boolean to format.
return string

GetPhysicalAddress() public static method

Formats a byte array to a physical address (MAC address).
public static GetPhysicalAddress ( byte byteArray, char seperator = '-' ) : string
byteArray byte The byte array to format.
seperator char The seperator.
return string