Dim logDetail = (
From d In UIDLs
Select d.EmailID
Where EmailID = UIDL
).FirstOrDefault
The blocking collection is UIDLs.
Will the logDetail object get taken out of the blocking collection?
This is probably an invalid use of the blocking collection, but UIDLs is just there so I can do a parallel lookup of the values in UIDLs. I was considering using the concurrent dictionary, that seems even worse to me since i basically just have an array of objects and not name value pairs.
Using this query will utilize the IEnumerable interface.
The blocking collection’s default GetEnumerator will NOT remove items from the list.
BlockingCollection.IEnumerable.GetEnumerator Method