C# Class WizardWrx.ASCIICharacterDisplayInfo

Instances of this class represent individual ASCII characters. Since the NUL character is defined, and occupies the first element, the numeric code that corresponds to a character maps directly to the corresponding element in this array.
Datei anzeigen Open project: txwizard/WizardWrx_NET_API Class Usage Examples

Public Methods

Method Description
DisplayCharacterInfo ( char pchr ) : string

Create a ASCIICharacterDisplayInfo instance to represent a specified ASCII character, and call its ToString method to return all three representations of it (Printable, Hexadecimal, and Decimal, in that order.

ToString ( ) : string

Override ToString to render all three defined formats and most other properties.

Private Methods

Method Description
ASCIICharacterDisplayInfo ( ) : System

This constructor satisfies interfaces that require a default constructor. It is marked private because the assembly that owns all instances of this class uses one of the other two constructors.

ASCIICharacterDisplayInfo ( uint puintCode ) : System

Create an instance for a character for which the alternate display is undefined because it is either unnecessary or impractical.

ASCIICharacterDisplayInfo ( uint puintCode, char pchrCharacter, CharacterType penmCharacterType, CharacterSubtype penmCharacterSubtype, string pstrCHAR, string pstrDescription, string pstrHTMLName, string pstrAlternateText, string pstrComment ) : System

All instances of this class are created by calling this constructor.

CodeIsValid ( uint puintCode ) : bool

Method Details

DisplayCharacterInfo() public static method

Create a ASCIICharacterDisplayInfo instance to represent a specified ASCII character, and call its ToString method to return all three representations of it (Printable, Hexadecimal, and Decimal, in that order.
public static DisplayCharacterInfo ( char pchr ) : string
pchr char /// Specify the character for which to render the three representations. ///
return string

ToString() public method

Override ToString to render all three defined formats and most other properties.
public ToString ( ) : string
return string