Skip to main content

Lines<T>

A class in TavernLib, TavernLib.ModulePorts.

A list for console answers: one item per line in a text console, and a JSON array in TavernKeeper. Return it instead of a plain IEnumerable.

Constructors​

MemberWhat it is
Lines(IEnumerable<T> items)Copies the items into a list that a text console prints one per line.

Methods​

MemberWhat it is
override string ToString()Each item on its own line, or None when the list is empty.

Used in​

Members of other types that take, return or hold a Lines&lt;T>: