Show / Hide Table of Contents

Namespace WizardWrx.ConsoleStreams

Classes

DefaultErrorMessageColors

Expose the default fatal and nonfatal exception message colors, which are defined in a standard application configuration file that is linked to the assembly that defines this class.

ErrorMessagesInColor

Console.Error.Write and Console.Error.WriteLine methods that write in living color.

ErrorMessagesInColorConverter

Although its scope is public, the only practical use for this class is to facilitate storage of default or user specified ErrorMessagesInColor values in application settings files. That being the case, I put it at the end of the source file that defines that class.

MessageInColor

Console.Write and Console.WriteLine methods that write in living color.

MessageInColorConverter

Although its scope is public, the only practical use for this class is to facilitate storage of default or user specified MessageInColor values in application settings files.

StandardHandleInfo

This static class provides type-safe managed methods to determine the true redirection state of a standard console handle, including, if applicable, learning the name of the file to which it is redirected.

Enums

ErrorMessagesInColor.ErrorSeverity

Use this enumeration to specify the desired color scheme to the GetDefaultErrorMessageColors and GetDefaultMessageColors methods.

StandardHandleInfo.ConsoleModes

Use these flags to test the values returned by GetConsoleMode.

StandardHandleInfo.ConsoleOutputModes

Use these flags with SetConsoleMode to control how long output lines are handled.

StandardHandleInfo.StandardConsoleHandle

This enumeration defines the three valid values for an enumeration, StandardConsoleHandle, the input argument type of methods StandardHandleState and GetRedirectedFileName, both public methods, and GetStandardHandle, currently private, but under consideration for a promotion.

The upper and lower values are for efficient boundary testing.

StandardHandleInfo.StandardHandleState

This enumeration defines the two valid states and two defined error states that may be returned by the StandardHandleState method, along with a pair of values that may be returned to indicate one of two error conditions.

Back to top Generated by DocFX