Why you should never use `Console.WriteLine`
Do not use the Console class to display output in unattended applications, such as server applications. Calls to methods such as Console.Write and Console.WriteLine have no effect in GUI applications. Using Console.WriteLine in a library tightly couples your library to …