Skip to content

T_CommandLine_Text_CopyrightInfo

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

CopyrightInfo Class

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

Inheritance Hierarchy

System.Object
CommandLine.Text.CopyrightInfo
Namespace:CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

publicclass CopyrightInfo

VB

PublicClassCopyrightInfo

C++

public ref classCopyrightInfo

F#

typeCopyrightInfo=classend

The CopyrightInfo type exposes the following members.

Constructors

NameDescription
Protected methodCopyrightInfo() Initializes a new instance of the CopyrightInfo class.
Private methodCopyrightInfo(AssemblyCopyrightAttribute) Initializes a new instance of the CopyrightInfo class with an assembly attribute, this overrides all formatting.
Public methodCopyrightInfo(String, Int32) Initializes a new instance of the CopyrightInfo class specifying author and year.
Public methodCopyrightInfo(String, Int32[]) Initializes a new instance of the CopyrightInfo class specifying author and copyrightYears.
Public methodCopyrightInfo(Boolean, String, Int32[]) Initializes a new instance of the CopyrightInfo class specifying symbol case, author and copyrightYears.
Back to Top

Properties

NameDescription
Protected propertyCopyrightWord Gets a different copyright word when overridden in a derived class.
Public propertyStatic memberDefault Gets the default copyright information. Retrieved from AssemblyCopyrightAttribute, if it exists, otherwise it uses AssemblyCompanyAttribute as copyright holder with the current year. If neither exists it throws an InvalidOperationException.
Public propertyStatic memberEmpty An empty object used for initialization.
Back to Top

Methods

NameDescription
Public methodEquals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected methodFormatYears When overridden in a derived class, allows to specify a new algorithm to render copyright copyrightYears as a String instance.
Public methodGetHashCode Serves as the default hash function. (Inherited from Object.)
Public methodGetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodToString Returns the copyright as a String. (Overrides Object.ToString().)
Back to Top

Operators

NameDescription
Public operatorStatic memberImplicit(CopyrightInfo to String) Converts the copyright instance to a String.
Back to Top

Extension Methods

NameDescription
Private Extension MethodIsEmpty (Defined by UnParserExtensions.)
Private Extension MethodNormalizeValue (Defined by UnParserExtensions.)
Back to Top

See Also

Reference

CommandLine.Text Namespace

Clone this wiki locally