When Compiling C# I always get these two errors

Viewed 35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace ThreeLinesOutput
{
    class Program
    {
        static void Main(string[] args)
        {
            WriteLine("Line 1");
            WriteLine("Line 2");
            WriteLine("Line 3");
                

        }
    }
}

I always get these two errors whenever I try compiling this code I am not sure what I am doing wrong.

error CS1041: Identifier expected; 'static' is a keyword

error CS1518: Expected class, delegate, enum, interface, or struct

0 Answers
Related