I have confused with a convention followed by Main
method.. If talk about Main
method of windows form application that is decorated with [STAThread]
attribute.
And Main
method of console application there is no such kind of attribute. So I want to know what is meant by this attribute and why we need it in WinForm
and not in Console
.