Method Write
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Write(IEnumerable?, IMessageFormatterProcessor?, IFormatProvider?)
Writes each item in the enumerable collection to the output.
public override void Write(IEnumerable? enumerable, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)
Parameters
enumerableIEnumerableThe enumerable collection to write. If null, a "No items to display" message is shown.
formatterProcessorIMessageFormatterProcessorOptional formatter processor that can be used to format each item before writing. If null, the item's default string representation is used.
formatProviderIFormatProviderThe format provider applied to each item, or null to use the current culture.