[Mono-list] ThreadStatic attribute not working?

Paolo Molaro lupus@ximian.com
Tue, 22 Feb 2005 21:29:36 +0100


On 02/22/05 Eddy Young wrote:
> The ThreadAttribute does not seem to be working properly on Windows, Linux
> and Mac OS X. In the following code, s2 returns a null value when compiled
> with Mono, but returns the correct value when compiled with MS .NET.
[...]
> {
> 	[ThreadStatic]
> 	private static string _testString;
> 
> 	public static string Current
> 	{
> 		get { return _testString; }
> 
> 		set { _testString = value; }
> 	}
> }

It works fine. What version of mono are you using?

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better