Table of Contents

Method GetMessage

Namespace
Ploch.CommandLine.Spectre.Output
Assembly
Ploch.CommandLine.Spectre.dll

GetMessage(string?, IMessageFormatterProcessor?, IFormatProvider?)

Returns the message unchanged, or an empty string when it is null.

public override string GetMessage(string? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)

Parameters

message string

The message to format.

formatterProcessor IMessageFormatterProcessor

The processor used to format nested messages. Not used by this formatter.

formatProvider IFormatProvider

The format provider to apply, or null to use the current culture.

Returns

string

The message, or Empty when message is null.