VisualStudioFeeds

All Visual Studio blogs in one place

AddThis Social Bookmark Button
Originally posted at 12/15/2010Well, one way we can use to solve the problem is by introducing a finalizer, like so: public class CloseableThreadLocal { [ThreadStatic] private static Dictionary slots; public static Dictionary Slots {
get { return slots ?? (slots = new Dictionary()); } } public /*protected internal*/ virtual Object InitialValue() { return null; } public virtual Object Get() { ...(Read whole news on source site)

Search

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Home : Blog List : VibrantCode : Wrong answer #1: Your own ThreadLocal