C# Class CommandLine.Text.CopyrightInfo

Models the copyright part of an help text. You can assign it where you assign any System.String instance.
Mostra file Open project: ErikEJ/SqlQueryStress Class Usage Examples

Public Methods

Method Description
CopyrightInfo ( bool isSymbolUpper, string author ) : System.Globalization

Initializes a new instance of the CommandLine.Text.CopyrightInfo class specifying symbol case, author and years.

CopyrightInfo ( string author ) : System.Globalization

Initializes a new instance of the CommandLine.Text.CopyrightInfo class specifying author and years.

CopyrightInfo ( string author, int year ) : System.Globalization

Initializes a new instance of the CommandLine.Text.CopyrightInfo class specifying author and year.

ToString ( ) : string

Returns the copyright informations as a System.String.

Protected Methods

Method Description
CopyrightInfo ( ) : System.Globalization

Initializes a new instance of the CommandLine.Text.CopyrightInfo class.

FormatYears ( int years ) : string

When overridden in a derived class, allows to specify a new algorithm to render copyright years as a System.String instance.

Method Details

CopyrightInfo() protected method

Initializes a new instance of the CommandLine.Text.CopyrightInfo class.
protected CopyrightInfo ( ) : System.Globalization
return System.Globalization

CopyrightInfo() public method

Initializes a new instance of the CommandLine.Text.CopyrightInfo class specifying symbol case, author and years.
Thrown when parameter is null or empty string. Thrown when parameter is not supplied.
public CopyrightInfo ( bool isSymbolUpper, string author ) : System.Globalization
isSymbolUpper bool The case of the copyright symbol.
author string The company or person holding the copyright.
return System.Globalization

CopyrightInfo() public method

Initializes a new instance of the CommandLine.Text.CopyrightInfo class specifying author and years.
Thrown when parameter is null or empty string. Thrown when parameter is not supplied.
public CopyrightInfo ( string author ) : System.Globalization
author string The company or person holding the copyright.
return System.Globalization

CopyrightInfo() public method

Initializes a new instance of the CommandLine.Text.CopyrightInfo class specifying author and year.
Thrown when parameter is null or empty string.
public CopyrightInfo ( string author, int year ) : System.Globalization
author string The company or person holding the copyright.
year int The year of coverage of copyright.
return System.Globalization

FormatYears() protected method

When overridden in a derived class, allows to specify a new algorithm to render copyright years as a System.String instance.
protected FormatYears ( int years ) : string
years int A array of years.
return string

ToString() public method

Returns the copyright informations as a System.String.
public ToString ( ) : string
return string