What is the Purpose of Console.WriteLine() in Winforms

前端 未结 4 1381
终归单人心
终归单人心 2021-02-08 11:12

I once saw the source code of a winform application and the code had a Console.WriteLine();. I asked the reason for that and i was told that it was for

4条回答
  •  生来不讨喜
    2021-02-08 11:57

    It writes to the Console.

    The end user won't see it, and to be honest its much cleaner to put it into a proper log, but if you run it through VS the Console window will populate.

提交回复
热议问题