[Mono-devel-list] Thread.CurrentCulture and appdomains

Dick Porter dick at ximian.com
Tue Nov 2 09:48:06 EST 2004


On Tue, 2004-11-02 at 15:11 +0100, Paolo Molaro wrote:
> Does the culture propagate to the calling appdomain:
> 	appdomain1: culture a
> 	-> appdomain2
> 		change culture tu b and return
> 	appdomain1: culture a or b?

According to the bugzilla entry for this, we should get culture b in
appdomain1.

It's not just CurrentCulture that needs to be propagated - Name (though
that can only be set once) is definitely shared.  What happens if one
appdomain sets a TLS slot, and another tries to read it?  We'd have to
see what happens on the ms runtime, but I'd expect it to return the same
object in both domains.  Luckily, the other properties seem to be just
convenience wrappers around thread state settings, and return bool or
enums.

- Dick






More information about the Mono-devel-list mailing list