mandelbrot
Centurion
Dear All,
I'm trying to implement the ICollection(Of T) interface. This would be fairly straight forward, but for some reason there are two implementations of the GetEnumerator function:
I can understand that the second enumerator function is there due to the implementation of the IEnumerator in the ICollection interface, but what implications does it have on the operation of the class, and should I code it up independantly with an equivalent enumeration class?
Kind regards
Paul Weston
I'm trying to implement the ICollection(Of T) interface. This would be fairly straight forward, but for some reason there are two implementations of the GetEnumerator function:
Visual Basic:
'Returns an enumerator to the address...
Public Function GetEnumerator() _
As System.Collections.Generic.IEnumerator(Of IAddress) _
Implements System.Collections.Generic.IEnumerable(Of IAddress).GetEnumerator
....
End Function
'Returns an enumerator to the IEnumerable interface...
Public Function GetEnumerator1() _
As System.Collections.IEnumerator _
Implements System.Collections.IEnumerable.GetEnumerator
....
End Function
Kind regards
Paul Weston