Table of Contents

Method GetMessage

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

GetMessage(object?, IMessageFormatterProcessor, IFormatProvider?)

Formats a message object into its string representation.

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

Parameters

message object

The message object to format. Can be null.

formatterProcessor IMessageFormatterProcessor

The processor that provides formatting capabilities.

formatProvider IFormatProvider

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

Returns

string

A string representation of the provided message.