C
C#2y ago
Juliandyce

❔ searching mistake

namespace App2 { public class Program14 { private static void SayHello() {
Console.Write("What is ur name?"); string name = Console.ReadLine(); Console.WriteLine("Hello {0}", name); } static void Main(string[] args) { SayHello(); } } } CS1022 Type or namespace definition or end of file expected.
2 Replies
phaseshift
phaseshift2y ago
C# Online Compiler | .NET Fiddle
Test your C# code online with .NET Fiddle code editor.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?