Original Post
Is it possible to break out of a constructor and kill the instance it is constucting?
example:
class MyForm: public Form
{
public MyForm()
{
if(true)
{
//Exit constructor somehow and quit program
}
else
{
InitializeComponent();
}
Console.WriteLine("I shouldnt see this");
}
static void Main()
{
Application.Run(new MyForm());
}
}