Can we share a static field across Application domains?
Consider a process, in which multiple Ap开发者_运维问答plication domains are created. Can we share a single static field across these Application domains or can we pass this static field across these application domains? How does CLR handle this?
C++/CLI can do this, using __declspec(process)
vs __declspec(appdomain)
. I'm not sure exactly how it records that in the metadata or whether that's an attribute to do that in other languages.
精彩评论