C# Class WizardWrx.ASCII_Character_Display_Table

Provide read only access to a table of ASCII characters and text to display for selected special characters.
Mostrar archivo Open project: txwizard/WizardWrx_NET_API Class Usage Examples

Public Methods

Method Description
GetTheSingleInstance ( ) : ASCII_Character_Display_Table

Gets a reference to the single ASCII_Character_Display_Table instance.

The example given under the help topic for this class shows you that you need not actually allocate storage for the instance, since what you really need is a copy of the ASCIICharacterDisplayInfo table, available through the read only AllASCIICharacters property, which can be assigned directly to an AllASCIICharacters array. To preserve its independence, this class uses the archaic Singleton implementation, rather than inherit from the abstract base class in WizardWrx.DllServices2.dll, although I could certainly fix that by linking the source code into this assembly. Since that creates an even more awkward dependency, and I don't want to put an actual copy in this source tree, I'll leave it alone. After all, this class is not exactly a high traffic property.

Private Methods

Method Description
ASCII_Character_Display_Table ( ) : System
CreateOnFirstUse ( string plwlMaster, ASCII_Character_Display_Table &ptsfThis ) : void
InitialzeInstance ( ) : void

Since the class is a singleton, I separated the initializer from the constructor, as has been my custom.

Method Details

GetTheSingleInstance() public static method

Gets a reference to the single ASCII_Character_Display_Table instance.
The example given under the help topic for this class shows you that you need not actually allocate storage for the instance, since what you really need is a copy of the ASCIICharacterDisplayInfo table, available through the read only AllASCIICharacters property, which can be assigned directly to an AllASCIICharacters array. To preserve its independence, this class uses the archaic Singleton implementation, rather than inherit from the abstract base class in WizardWrx.DllServices2.dll, although I could certainly fix that by linking the source code into this assembly. Since that creates an even more awkward dependency, and I don't want to put an actual copy in this source tree, I'll leave it alone. After all, this class is not exactly a high traffic property.
public static GetTheSingleInstance ( ) : ASCII_Character_Display_Table
return ASCII_Character_Display_Table