CommandLine
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Properties | List of all members
CommandLine.Text.HeadingInfo Class Reference

Models the heading part of an help text. You can assign it where you assign any System.String instance. More...

Public Member Functions

 HeadingInfo (string programName)
 Initializes a new instance of the CommandLine.Text.HeadingInfo class specifying program name. More...
 
 HeadingInfo (string programName, string version)
 Initializes a new instance of the CommandLine.Text.HeadingInfo class specifying program name and version. More...
 
override string ToString ()
 Returns the heading as a System.String. More...
 
void WriteMessage (string message, TextWriter writer)
 Writes out a string and a new line using the program name specified in the constructor and message parameter. More...
 
void WriteMessage (string message)
 Writes out a string and a new line using the program name specified in the constructor and message parameter to standard output stream. More...
 
void WriteError (string message)
 Writes out a string and a new line using the program name specified in the constructor and message parameter to standard error stream. More...
 

Static Public Member Functions

static implicit operator string (HeadingInfo info)
 Converts the heading to a System.String. More...
 

Properties

static HeadingInfo Default [get]
 Gets the default heading instance. The title is retrieved from AssemblyTitleAttribute, or the assembly short name if its not defined. The version is retrieved from AssemblyInformationalVersionAttribute, or the assembly version if its not defined. More...
 

Detailed Description

Models the heading part of an help text. You can assign it where you assign any System.String instance.

Constructor & Destructor Documentation

CommandLine.Text.HeadingInfo.HeadingInfo ( string  programName)
inline

Initializes a new instance of the CommandLine.Text.HeadingInfo class specifying program name.

Parameters
programNameThe name of the program.
Exceptions
System.ArgumentExceptionThrown when parameter programName is null or empty string.
CommandLine.Text.HeadingInfo.HeadingInfo ( string  programName,
string  version 
)
inline

Initializes a new instance of the CommandLine.Text.HeadingInfo class specifying program name and version.

Parameters
programNameThe name of the program.
versionThe version of the program.
Exceptions
System.ArgumentExceptionThrown when parameter programName is null or empty string.

Member Function Documentation

static implicit CommandLine.Text.HeadingInfo.operator string ( HeadingInfo  info)
inlinestatic

Converts the heading to a System.String.

Parameters
infoThis CommandLine.Text.HeadingInfo instance.
Returns
The System.String that contains the heading.
override string CommandLine.Text.HeadingInfo.ToString ( )
inline

Returns the heading as a System.String.

Returns
The System.String that contains the heading.
void CommandLine.Text.HeadingInfo.WriteError ( string  message)
inline

Writes out a string and a new line using the program name specified in the constructor and message parameter to standard error stream.

Parameters
messageThe System.String message to write.
Exceptions
System.ArgumentExceptionThrown when parameter message is null or empty string.
void CommandLine.Text.HeadingInfo.WriteMessage ( string  message,
TextWriter  writer 
)
inline

Writes out a string and a new line using the program name specified in the constructor and message parameter.

Parameters
messageThe System.String message to write.
writerThe target System.IO.TextWriter derived type.
Exceptions
System.ArgumentExceptionThrown when parameter message is null or empty string.
System.ArgumentNullExceptionThrown when parameter writer is null.
void CommandLine.Text.HeadingInfo.WriteMessage ( string  message)
inline

Writes out a string and a new line using the program name specified in the constructor and message parameter to standard output stream.

Parameters
messageThe System.String message to write.
Exceptions
System.ArgumentExceptionThrown when parameter message is null or empty string.

Property Documentation

HeadingInfo CommandLine.Text.HeadingInfo.Default
staticget

Gets the default heading instance. The title is retrieved from AssemblyTitleAttribute, or the assembly short name if its not defined. The version is retrieved from AssemblyInformationalVersionAttribute, or the assembly version if its not defined.


The documentation for this class was generated from the following file: