Class ListWriterColor
List writer with color support
Inheritance
Namespace: Terminaux.Writer.ConsoleWriters
Assembly: Terminaux.dll
Syntax
[Obsolete("This is considered a legacy method of writing this fancy text and will be removed in a future version of Terminaux. Also, this writer doesn't support indeterminate progress bars. Please use its cyclic writer equivalent.")]
public static class ListWriterColor
Methods
| Edit this page View SourceRenderList(IDictionary, Func<object, string>?, Func<object, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList(IDictionary List, Func<object, string>? keyObjectStringifier = null, Func<object, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | List | A dictionary that will be listed. |
Func<object, string> | keyObjectStringifier | A function that stringifies a key. |
Func<object, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
RenderList(IDictionary, Color, Color, Func<object, string>?, Func<object, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList(IDictionary List, Color ListKeyColor, Color ListValueColor, Func<object, string>? keyObjectStringifier = null, Func<object, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | List | A dictionary that will be listed. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<object, string> | keyObjectStringifier | A function that stringifies a key. |
Func<object, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
RenderList(IEnumerable, Func<object, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList(IEnumerable List, Func<object, string>? objectStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | List | A dictionary that will be listed. |
Func<object, string> | objectStringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
RenderList(IEnumerable, Color, Color, Func<object, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList(IEnumerable List, Color ListKeyColor, Color ListValueColor, Func<object, string>? objectStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | List | A dictionary that will be listed. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<object, string> | objectStringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
RenderList<T>(IEnumerable<T>, Func<T, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList<T>(IEnumerable<T> List, Func<T, string>? stringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | List | A dictionary that will be listed. |
Func<T, string> | stringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
Type Parameters
Name | Description |
---|---|
T |
RenderList<T>(IEnumerable<T>, Color, Color, Func<T, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList<T>(IEnumerable<T> List, Color ListKeyColor, Color ListValueColor, Func<T, string>? stringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | List | A dictionary that will be listed. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<T, string> | stringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
Type Parameters
Name | Description |
---|---|
T |
RenderList<TKey, TValue>(Dictionary<TKey, TValue>, Func<TKey, string>?, Func<TValue, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList<TKey, TValue>(Dictionary<TKey, TValue> List, Func<TKey, string>? keyStringifier = null, Func<TValue, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | List | A dictionary that will be listed. |
Func<TKey, string> | keyStringifier | A function that stringifies a key. |
Func<TValue, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
RenderList<TKey, TValue>(Dictionary<TKey, TValue>, Color, Color, Func<TKey, string>?, Func<TValue, string>?, Func<object, string>?)
Renders the list entries.
Declaration
public static string RenderList<TKey, TValue>(Dictionary<TKey, TValue> List, Color ListKeyColor, Color ListValueColor, Func<TKey, string>? keyStringifier = null, Func<TValue, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | List | A dictionary that will be listed. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<TKey, string> | keyStringifier | A function that stringifies a key. |
Func<TValue, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Returns
Type | Description |
---|---|
string |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
WriteList(IDictionary, Func<object, string>?, Func<object, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt. It wraps output depending on the kernel settings.
Declaration
public static void WriteList(IDictionary List, Func<object, string>? keyObjectStringifier = null, Func<object, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | List | A dictionary that will be listed to the terminal prompt. |
Func<object, string> | keyObjectStringifier | A function that stringifies a key. |
Func<object, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
WriteList(IDictionary, Color, Color, Func<object, string>?, Func<object, string>?, Func<object, string>?)
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteList(IDictionary List, Color ListKeyColor, Color ListValueColor, Func<object, string>? keyObjectStringifier = null, Func<object, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | List | A dictionary that will be listed to the terminal prompt. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<object, string> | keyObjectStringifier | A function that stringifies a key. |
Func<object, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
WriteList(IEnumerable, Func<object, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt. It wraps output depending on the kernel settings.
Declaration
public static void WriteList(IEnumerable List, Func<object, string>? objectStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | List | A dictionary that will be listed to the terminal prompt. |
Func<object, string> | objectStringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
WriteList(IEnumerable, Color, Color, Func<object, string>?, Func<object, string>?)
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteList(IEnumerable List, Color ListKeyColor, Color ListValueColor, Func<object, string>? objectStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | List | A dictionary that will be listed to the terminal prompt. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<object, string> | objectStringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
WriteListPlain(IDictionary, Func<object, string>?, Func<object, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt plainly. It wraps output depending on the kernel settings.
Declaration
public static void WriteListPlain(IDictionary List, Func<object, string>? keyObjectStringifier = null, Func<object, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | List | A dictionary that will be listed to the terminal prompt. |
Func<object, string> | keyObjectStringifier | A function that stringifies a key. |
Func<object, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
WriteListPlain(IEnumerable, Func<object, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt plainly. It wraps output depending on the kernel settings.
Declaration
public static void WriteListPlain(IEnumerable List, Func<object, string>? objectStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | List | A dictionary that will be listed to the terminal prompt. |
Func<object, string> | objectStringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
WriteListPlain<T>(IEnumerable<T>, Func<T, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt plainly. It wraps output depending on the kernel settings.
Declaration
public static void WriteListPlain<T>(IEnumerable<T> List, Func<T, string>? stringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | List | A dictionary that will be listed to the terminal prompt. |
Func<T, string> | stringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Type Parameters
Name | Description |
---|---|
T |
WriteListPlain<TKey, TValue>(Dictionary<TKey, TValue>, Func<TKey, string>?, Func<TValue, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt plainly. It wraps output depending on the kernel settings.
Declaration
public static void WriteListPlain<TKey, TValue>(Dictionary<TKey, TValue> List, Func<TKey, string>? keyStringifier = null, Func<TValue, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | List | A dictionary that will be listed to the terminal prompt. |
Func<TKey, string> | keyStringifier | A function that stringifies a key. |
Func<TValue, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
WriteList<T>(IEnumerable<T>, Func<T, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt. It wraps output depending on the kernel settings.
Declaration
public static void WriteList<T>(IEnumerable<T> List, Func<T, string>? stringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | List | A dictionary that will be listed to the terminal prompt. |
Func<T, string> | stringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Type Parameters
Name | Description |
---|---|
T |
WriteList<T>(IEnumerable<T>, Color, Color, Func<T, string>?, Func<object, string>?)
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteList<T>(IEnumerable<T> List, Color ListKeyColor, Color ListValueColor, Func<T, string>? stringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | List | A dictionary that will be listed to the terminal prompt. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<T, string> | stringifier | A function that stringifies an entry. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Type Parameters
Name | Description |
---|---|
T |
WriteList<TKey, TValue>(Dictionary<TKey, TValue>, Func<TKey, string>?, Func<TValue, string>?, Func<object, string>?)
Outputs the list entries into the terminal prompt. It wraps output depending on the kernel settings.
Declaration
public static void WriteList<TKey, TValue>(Dictionary<TKey, TValue> List, Func<TKey, string>? keyStringifier = null, Func<TValue, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | List | A dictionary that will be listed to the terminal prompt. |
Func<TKey, string> | keyStringifier | A function that stringifies a key. |
Func<TValue, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |
WriteList<TKey, TValue>(Dictionary<TKey, TValue>, Color, Color, Func<TKey, string>?, Func<TValue, string>?, Func<object, string>?)
Outputs the text into the terminal prompt with custom color support.
Declaration
public static void WriteList<TKey, TValue>(Dictionary<TKey, TValue> List, Color ListKeyColor, Color ListValueColor, Func<TKey, string>? keyStringifier = null, Func<TValue, string>? valueStringifier = null, Func<object, string>? recursiveStringifier = null)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<TKey, TValue> | List | A dictionary that will be listed to the terminal prompt. |
Color | ListKeyColor | A key color. |
Color | ListValueColor | A value color. |
Func<TKey, string> | keyStringifier | A function that stringifies a key. |
Func<TValue, string> | valueStringifier | A function that stringifies a value. |
Func<object, string> | recursiveStringifier | A function that stringifies a recursed entry. |
Type Parameters
Name | Description |
---|---|
TKey | |
TValue |