Categories
C#.NET Microsoft Visual Studio

Visual Studio C#.Net – “A get or set accessor expected”

A get or set accessor expected

in Italian:

È prevista una funzione di accesso get o set

Solution:
You miss the parentheses on the method declaration

private void SampleMethod()
{

}

Did my solution solve your problem? Leave a reply.