C# Class NuGet.Common.Console

Inheritance: IConsole
Afficher le fichier Open project: xero-github/Nuget Class Usage Examples

Méthodes publiques

Méthode Description
Confirm ( string description ) : bool
Log ( MessageLevel level, string message ) : void
PrintJustified ( int startIndex, string text ) : void
PrintJustified ( int startIndex, string text, int maxWidth ) : void
Write ( object value ) : void
Write ( string value ) : void
WriteError ( object value ) : void
WriteError ( string value ) : void
WriteLine ( ) : void
WriteLine ( object value ) : void
WriteLine ( string value ) : void
WriteWarning ( bool prependWarningText, string value ) : void
WriteWarning ( string value ) : void

Private Methods

Méthode Description
WriteColor ( TextWriter writer, ConsoleColor color, string value ) : void

Method Details

Confirm() public méthode

public Confirm ( string description ) : bool
description string
Résultat bool

Log() public méthode

public Log ( MessageLevel level, string message ) : void
level MessageLevel
message string
Résultat void

PrintJustified() public méthode

public PrintJustified ( int startIndex, string text ) : void
startIndex int
text string
Résultat void

PrintJustified() public méthode

public PrintJustified ( int startIndex, string text, int maxWidth ) : void
startIndex int
text string
maxWidth int
Résultat void

Write() public méthode

public Write ( object value ) : void
value object
Résultat void

Write() public méthode

public Write ( string value ) : void
value string
Résultat void

WriteError() public méthode

public WriteError ( object value ) : void
value object
Résultat void

WriteError() public méthode

public WriteError ( string value ) : void
value string
Résultat void

WriteLine() public méthode

public WriteLine ( ) : void
Résultat void

WriteLine() public méthode

public WriteLine ( object value ) : void
value object
Résultat void

WriteLine() public méthode

public WriteLine ( string value ) : void
value string
Résultat void

WriteWarning() public méthode

public WriteWarning ( bool prependWarningText, string value ) : void
prependWarningText bool
value string
Résultat void

WriteWarning() public méthode

public WriteWarning ( string value ) : void
value string
Résultat void