Public Function GetEnumerator() As IEnumerator(Of T) Implements IEnumerable(Of T).GetEnumerator Dim value As IEnumerator(Of T) = CType(Nothing, IEnumerator(Of T)) SyncLock Me._lock ' Why My collection not respect my Enumerator.......?????????????? value = New RiverNileListEnumerator(Me) End SyncLock Return value End Function
' the collection works fine with this value value = Me.InnerList.GetEnumerator()
For Each obj As object In objects.ToArray() foo.Items.Add(obj) Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)