求:C#语言中的Consolo.WriteLine和Consolo.ReadLine具体有什么区别?具体表示什么意思呢?
答案:2 悬赏:50 手机版
解决时间 2021-11-19 16:38
- 提问者网友:暗中人
- 2021-11-19 02:20
求:C#语言中的Consolo.WriteLine和Consolo.ReadLine具体有什么区别?具体表示什么意思呢?
最佳答案
- 五星知识达人网友:冷風如刀
- 2021-11-19 02:38
Console.WriteLine:
[HostProtection(SecurityAction.LinkDemand, UI=true)]
public static string ReadLine()
{
return In.ReadLine();
}
Consolo.WriteLine有19种重载:
[HostProtection(SecurityAction.LinkDemand, UI=true)]
public static void WriteLine()
{
Out.WriteLine();
}
Consolo.WriteLine和Consolo.ReadLine具体区别:
Consolo.WriteLine无返回,是直接在控制台上打印信息(输出)
Consolo.ReadLine返回string,是接收控制台输入的信息 (接收)
[HostProtection(SecurityAction.LinkDemand, UI=true)]
public static string ReadLine()
{
return In.ReadLine();
}
Consolo.WriteLine有19种重载:
[HostProtection(SecurityAction.LinkDemand, UI=true)]
public static void WriteLine()
{
Out.WriteLine();
}
Consolo.WriteLine和Consolo.ReadLine具体区别:
Consolo.WriteLine无返回,是直接在控制台上打印信息(输出)
Consolo.ReadLine返回string,是接收控制台输入的信息 (接收)
全部回答
- 1楼网友:动情书生
- 2021-11-19 03:51
Consolo.WriteLine是想控制台输出信息
Consolo.ReadLine是读取控制台输入的信息
Consolo.ReadLine是读取控制台输入的信息
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯