C# Класс CommandLine.Text.CopyrightInfo

Models the copyright part of an help text. You can assign it where you assign any System.String instance.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

CopyrightInfo() защищенный Метод

Initializes a new instance of the CommandLine.Text.CopyrightInfo class.
protected CopyrightInfo ( ) : System.Globalization
Результат System.Globalization

CopyrightInfo() публичный Метод

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.
Результат System.Globalization

CopyrightInfo() публичный Метод

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.
Результат System.Globalization

CopyrightInfo() публичный Метод

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.
Результат System.Globalization

FormatYears() защищенный Метод

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.
Результат string

ToString() публичный Метод

Returns the copyright informations as a System.String.
public ToString ( ) : string
Результат string