This is a class, not an application - and you can't execute a class on it's own because the system doesn't know where to begin.
And executable program needs a specific method to call - it's called "Main" and it must be a static method:
static void Main(string[] args)
{
...
}
If that doesn't exist, you can't run the code!