C # problem with MAIN and source

-1

I was doing a program in visual studio using the C # language until this error appeared and I do not know how to solve it:

andthecodewasthis

Any suggestions for solving this?

    
asked by anonymous 15.08.2018 / 19:18

1 answer

-1

So I noticed your class is not within a namespace.

The correct one would be:

namespace WpfApp1
{
    public class MinhaClasse
    {
        static void main(string[] args){

        }
    }
}
    
15.08.2018 / 19:46