Table of Contents

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

enumerable IEnumerable

The enumerable collection to write. If null, a "No items to display" message is shown.

formatterProcessor IMessageFormatterProcessor

Optional formatter processor that can be used to format each item before writing. If null, the item's default string representation is used.

formatProvider IFormatProvider

The format provider applied to each item, or null to use the current culture.