How to reproduce [ThreadStatic] behavior ? RRS feed

  • Question

  • I am porting an in-house framework to .NET CF 2.0 SP1. In some places, we use the [ThreadStatic] attribute. It does not exist on CF, so how would you replace it ? I could use Thread Local Storage (Thread.GetData/SetData), but I would prefer another solution if possible.

    Thanks !


    Wednesday, August 9, 2006 1:13 AM


  • I think using TLS is the right workaround - I don't think there is another alternative.

    - Roman 

    Wednesday, August 9, 2006 7:36 PM