Method GetMessage
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
GetMessage(IEnumerable?, IMessageFormatterProcessor?, IFormatProvider?)
Converts an IEnumerable collection into a formatted string representation. Each item in the collection is displayed on a new line with a pointing finger emoji prefix.
public override string GetMessage(IEnumerable? enumerable, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)
Parameters
enumerableIEnumerableThe IEnumerable collection to format. If null, an empty string is returned.
formatterProcessorIMessageFormatterProcessorOptional processor used to format individual items in the collection. When it is omitted, each item is rendered with its own ToString().
formatProviderIFormatProviderThe format provider applied to each item, or null to use the current culture.
Returns
- string
A string containing each item of the collection on a separate line, prefixed with a pointing finger emoji, or an empty string if the collection is null.