Need a Syncroot for a LinkedList(of T)
问题 I am using VB.Net and would like to use a LinkedList. Only problem is that it is a multithreaded application. I saw from MSDN that Syncroot is an explicit implementation of the ICollection Interface. I found people wanting to do similar things with List(Of T). It seems that the solution there is to cast the list to the interface. I have tried to do what I would imagine to be a similar thing in VB.Net, basically: Dim TestLinkedList = New LinkedList(Of Long) SyncLock (Ctype(TestLinkedList,