C# C# Basics (Retired) Perform if / else

Can someone help me figure out this code? Why is it saying its wrong?

This code is saying it wrong but I can't figure out why and I can't understand what the complier means about theres an unexpected '.' in line 1? StudentsCode.cs(15,19): error CS1001: Unexpected symbol `.', expecting identifier Compilation failed: 1 error(s), 0 warnings

CodeChallenge.cs
string language = Console.ReadLine();

if(language == "C#")
{
  System.Console.WriteLine("C# Rocks!");
}
else 
{
    System.Console..WriteLine(language + " is not C#.");
}

1 Answer

Raffael Dettling
Raffael Dettling
31,040 Points

Simple typo you got 2 "." at the second WriteLine :)