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#

public class CopyrightInfo

VB

Public Class CopyrightInfo

C++

public ref class CopyrightInfo

F#

type CopyrightInfo =  class end

The CopyrightInfo type exposes the following members.

Constructors

 

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

Properties

 

Name Description
Protected property CopyrightWord Gets a different copyright word when overridden in a derived class.
Public propertyStatic member Default 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 member Empty An empty object used for initialization.
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method FormatYears When overridden in a derived class, allows to specify a new algorithm to render copyright copyrightYears as a String instance.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the copyright as a String. (Overrides Object.ToString().)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Implicit(CopyrightInfo to String) Converts the copyright instance to a String.
  Back to Top

Extension Methods

 

Name Description
Private Extension Method IsEmpty (Defined by UnParserExtensions.)
Private Extension Method NormalizeValue (Defined by UnParserExtensions.)
  Back to Top

See Also

Reference

CommandLine.Text Namespace

Clone this wiki locally