Created
April 18, 2013 08:33
-
-
Save wonderful-panda/5411178 to your computer and use it in GitHub Desktop.
FuncBaseEnumerable.vb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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