What does [STAThread] do above main( ) in C#? I found it hard to understand the stuff found on google but it seems to be something that applies itself to main( ) and is to do with threading??
Is it an attribute? I've just started c# and keep seeing them mentioned but haven't got to that bit yet! :)
STAThread stands for "Single Thread Apartment Thread". This relates to the COM threading model. You can search for "Single Thread Apartment" for more information. STA is the default and fine for nearly all tasks so you can ignore it for now.