Synchronized Collection<T> Recommendation
- From: "Michael Primeaux" <mjprimeaux@xxxxxxx>
- Date: Sun, 30 Apr 2006 09:45:40 -0500
What is the recommended pattern for implementing a synchronized
(thread-safe) class that inherits from Collection<T>? For example, I want
to implement a SyncRoot property [of type
System.Threading.ReaderWriterLock]. I do see where I can override
(protected) the methods InsertItem, RemoveItem, ClearItems, and SetItem.
However, I do not see an override for GetItem.
Kindest regards,
Michael
.
- Follow-Ups:
- Re: Synchronized Collection<T> Recommendation
- From: Chris Chilvers
- Re: Synchronized Collection<T> Recommendation
- Prev by Date: Global Assembly query.
- Next by Date: Re: When, why and where should a struct be used?
- Previous by thread: Global Assembly query.
- Next by thread: Re: Synchronized Collection<T> Recommendation
- Index(es):
Relevant Pages
|