什么是Console.WriteLine()中的WinForms的目的

编程入门 行业动态 更新时间:2024-10-22 13:47:59
本文介绍了什么是Console.WriteLine()中的WinForms的目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我曾经看到一个的winform 应用程序的源代码,该代码有一个 Console.WriteLine(); 。我问其中的原因,我被告知,这是用于调试目的

PLS是什么精华Console.WriteLine(); 在的winform 和它进行什么动作,因为当我尝试使用它,它从来没有写过任何东西。

解决方案

它写入到控制台。

最终用户将无法看到它,说实话它的干净得多将其放到一个适当的日志,但如果通过VS运行控制台窗口将填充。

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 debugging purposes.

Pls what is the essence of Console.WriteLine(); in a winform and what action does it perform because when i tried using it, it never wrote anything.

解决方案

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.

更多推荐

什么是Console.WriteLine()中的WinForms的目的

本文发布于:2023-05-28 12:32:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/320965.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目的   Console   WriteLine   WinForms

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!