Skip to content

Instantly share code, notes, and snippets.

@wonderful-panda
Created April 18, 2013 08:33
Show Gist options
  • Select an option

  • Save wonderful-panda/5411178 to your computer and use it in GitHub Desktop.

Select an option

Save wonderful-panda/5411178 to your computer and use it in GitHub Desktop.
FuncBaseEnumerable.vb
Public Class FuncBaseEnumerable(Of T)
Implements IEnumerable(Of T)
Private ReadOnly _getEnumerator As Func(Of IEnumerator(Of T))
Public Sub New(getEnumerator As Func(Of IEnumerator(Of T)))
_getEnumerator = getEnumerator
End Sub
Public Function GetEnumerator() As IEnumerator(Of T) Implements IEnumerable(Of T).GetEnumerator
Return _getEnumerator()
End Function
Public Function GetEnumerator1() As IEnumerator Implements IEnumerable.GetEnumerator
Return _getEnumerator()
End Function
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment