I have seen a lot of C# programs that use the []
, for example [STAThread]
and then the code follows. Another classic example is [DLLImport]
.
I know what STAThread
means but my question is what is the significance of the square brackets, essentially what do they tell the compiler?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…