8000 GitHub - Andrius-B/Tabler: Makes text tables out of data, used for uni
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Andrius-B/Tabler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tabler

Makes text tables out of data, used for uni In our university most of the tasks require that you print out both the input data and the results in tables, Tabler is a utility to help out with that chore

Example

Consider a data class:

class DataClass
    {
        public string Field = "Hello world!";
        public float Prop2 { get; private set; } = 5;
        public float Prop { get; set; } = 10;
    }

To print it in a file or the console:

var dataObject = new DataClass();

using (var sw = new StreamWriter(Console.OpenStandardOutput()))
    new TextTableBuilder<DataClass>()
        .AddObject(dataObject)
        .SetOutput(sw)
        .Print();

and the resulting output:

-------------------------
|Prop2|Prop|       Field|
-------------------------
|    5|  10|Hello world!|
-------------------------

Lists are also accepted to the table.

About

Makes text tables out of data, used for uni

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0