一个流利的库,在控制台应用程序 C# 中打印一个格式良好的表格
A library to print out a nicely formatted table in a console application C#
var tableData = new List>
{
new List{ "Sakura Yamamoto", "Support Engineer", "London", 46},
new List{ "Serge Baldwin", "Data Coordinator", "San Francisco", 28, "something else" },
new List{ "Shad Decker", "Regional Director", "Edinburgh"},
};Simple example with default format:
ConsoleTableBuilder
.From(tableData)
.ExportAndWriteLine();More example with existing format Alternative:
ConsoleTableBuilder
.From(tableData)
.WithFormat(ConsoleTableBuilderFormat.Alternative)
.ExportAndWriteLine(TableAligntment.Center);Advance example with custom format using CharMap:
…Check more demo here https://github.com/minhhungit/ConsoleTableExt/blob/master/Src/ConsoleTableApp/Program.cs
There are many ways to contribute to ConsoleTableExt, either contribute issue/code directly or buy me a cup of coffee
暂无开放 Issues,或尚未同步最近议题。