❔ How does CsConsoleFormat work?
CsConsoleFormat and ConsoleTable are two different libraries to output C# objects into a formatted table in the terminal.
CsConsoleFormat is more complex than consoletable.
As a beginner to the language I'm kind of confused by the README on the CsConsoleFormat.
https://github.com/Athari/CsConsoleFormat/blob/master/ReadMe.md
Unlike the README for ConsoleTables
https://github.com/khalidabuhakmeh/ConsoleTables
I don't really see where
CsConsoleFormat
takes in data and when it is printed. I also can't find any more documentation on this library. How would I uses CsConsoleFormat to print a list of class instances and some of their attributes?GitHub
CsConsoleFormat/ReadMe.md at master · Athari/CsConsoleFormat
.NET C# library for advanced formatting of console output [Apache] - Athari/CsConsoleFormat
GitHub
GitHub - khalidabuhakmeh/ConsoleTables: Print out a nicely formatte...
Print out a nicely formatted table in a console application C# - GitHub - khalidabuhakmeh/ConsoleTables: Print out a nicely formatted table in a console application C#
13 Replies
It seems the data is inside of
Order
Whatever and wherever that might behmm
and I'm not sure what
Order
could be either
do iterables in C# have a Select method?
what does that do? is it like a specialized for each?It's LINQ, which is a collection of extension methods on
IEnumerable<T>
.Select()
is more like .map()
in JSAngius
REPL Result: Success
Result: List<int>
Compile: 531.837ms | Execution: 80.671ms | React with ❌ to remove this embed.
Applies some given method to each element
alright that kind of helped thanks I'm gonna go reread some more docs
maybe check out $spectre instead for something like this
Spectre.Console is a .NET library that allows for easy creation of console UIs, text formatting in the console, and command-line argument parsing.
https://spectreconsole.net/
Spectre.Console - Welcome!
Spectre.Console is a .NET library that makes it easier to create beautiful console applications.
is this better if I just want to print some c# objects?
i'd say
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.