Static type declaration in C# versus C or C++

  • Thread starter Thread starter Meya-awe
  • Start date Start date
M

Meya-awe

Hello,
Could anyone point me to an explanation or explain what the difference
is between a static declaration of a variable in C# versus C or C++?
thanks,
BRAMOIN
 
BRAMOIN,

In C++, a static variable can be seen by any code in the same process.
In C#, the variable has a scope of the app-domain that it is in. Other than
that, there isn't anything different about them.

Hope this helps.
 
Back
Top