The sample code I am looking at is supposed
to be a console app. And yet it has the
same sort of structure that a windows app
would have.
Since I am unable to build the app yet, I
am unsure if it is a true console app.
Can a console app have this sort of main
procedure structure?
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace SomeProductNameSample
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}