此时,我正在开发一个脚本,它将获取员工信息并以特定方式显示信息在这种情况下,我尝试使用 `.ToString' 方法,以便将输入显示在同一行而不创建新行我知道这很简单,但是我不熟悉显示的错误。任何帮助,将不胜感激。
代码示例:
Console.WriteLine("********* Prompt for Employee information and create first employee **********");
Console.WriteLine("");
Console.WriteLine("Enter the First name: ");
Console.Write(line.ToString());
if (line.Contains("x"))
{
Console.WriteLine("Enter the Last name: ");
line2 = Console.ReadLine();
//Rest of Code Follows Same Flow...