Table of Contents

Method GetMessage

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

GetMessage(IConvertible?, IMessageFormatterProcessor?, IFormatProvider?)

Formats an IConvertible message into a string representation.

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

Parameters

message IConvertible

The message to format. Can be null.

formatterProcessor IMessageFormatterProcessor

Optional formatter processor that can be used for additional formatting operations. Can be null.

formatProvider IFormatProvider

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

Returns

string

The message converted using formatProvider, or the current culture when it is null; an empty string when message is null.