P
p988
Someone said that: [STAThread]/[MTAThread] in Main() only effect when
dealing with COM interop in console type application." Is this correct?
What if calling a regular DLL coded in C, instead of a COM object, is this
attribute still necessary?
Under what conditions should "[MTAThread]" be used instead of "[STAThread]"?
When to use "[STAThread]" then?
In a C#'s .cs file, a class is derived as ((1), (2) and (3) are added for
explanation):
public (1) class BaseForm : (2) Form
{
(3) string myString = " Hello, world!";
public BaseForm(){
...
}
...
}
What's the default modifier above before "Form" at place (2)and (3)?
Why "public" is used at (1)? If missing what's the default modifier at (1)?
Thanks in advance!
dealing with COM interop in console type application." Is this correct?
What if calling a regular DLL coded in C, instead of a COM object, is this
attribute still necessary?
Under what conditions should "[MTAThread]" be used instead of "[STAThread]"?
When to use "[STAThread]" then?
In a C#'s .cs file, a class is derived as ((1), (2) and (3) are added for
explanation):
public (1) class BaseForm : (2) Form
{
(3) string myString = " Hello, world!";
public BaseForm(){
...
}
...
}
What's the default modifier above before "Form" at place (2)and (3)?
Why "public" is used at (1)? If missing what's the default modifier at (1)?
Thanks in advance!