This feels like a dumb question but I couldn't find anything similar. Is there any reason not to make your main entry point class static
? I only ask really because ReSharper (naively... Class 'Program' is never instantiated
) warns about it.
I'm wondering if there is an objective better or worse way to define the class, and if so, why.
public /*static any harm including this?*/ class Program
{
public static void Main(string[] args) => CreateHostBuilder(args).Build().Run();
}