issue at C# Playground 102 while running locally #13

Closed
opened 2026-04-27 15:09:13 +00:00 by enjin2310 · 1 comment

got a info/alert prompt:
Console.WriteLine looks like a string in your code, not a method call.

You wrote "Console.WriteLine" inside double quotes — that turns it into a string of letters, not the command that actually prints to the screen.

In C# the double quotes wrap the TEXT you want to print, and Console.WriteLine is the command itself. So Console.WriteLine goes OUTSIDE the quotes, and your message goes INSIDE.

Example:
// Wrong: prints nothing useful
"Console.WriteLine("Hello")";

// Right: prints Hello
Console.WriteLine("Hello");

Code Submitted:
Console.WriteLine("Greetings");
Console.WriteLine("Helsinki");

got a info/alert prompt: Console.WriteLine looks like a string in your code, not a method call. You wrote "Console.WriteLine" inside double quotes — that turns it into a string of letters, not the command that actually prints to the screen. In C# the double quotes wrap the TEXT you want to print, and Console.WriteLine is the command itself. So Console.WriteLine goes OUTSIDE the quotes, and your message goes INSIDE. Example: // Wrong: prints nothing useful "Console.WriteLine(\"Hello\")"; // Right: prints Hello Console.WriteLine("Hello"); Code Submitted: Console.WriteLine("Greetings"); Console.WriteLine("Helsinki");
Owner

Resolved -- Three issues fixed:

  1. canRun signal required SignalR for local execution (shared root cause with #1, #12)
  2. Backend hint row counting bug (shared with #12)
  3. Lesson102_PrintTwoLines.cs had a typo in the PASS message -- "WriteLog" instead of "Console.WriteLine"
**Resolved** -- Three issues fixed: 1. `canRun` signal required SignalR for local execution (shared root cause with #1, #12) 2. Backend hint row counting bug (shared with #12) 3. `Lesson102_PrintTwoLines.cs` had a typo in the PASS message -- "WriteLog" instead of "Console.WriteLine"
Sign in to join this conversation.