I am using Rob Connery’s excellent MVC Storefront as a loose basis for my new MVC Web App but I’m having trouble porting the LazyList code to VB.NET (don’t ask).
It seems that VB doesn’t allow the GetEnumerator function to be specified twice with only differing return types. Does anyone know how I might get around this?
Thanks
Private Function GetEnumerator() As IEnumerator(Of T) Implements IEnumerable(Of T).GetEnumerator Return Inner.GetEnumerator() End Function Public Function GetEnumerator() As IEnumerator Implements IList(Of T).GetEnumerator Return DirectCast(Inner, IEnumerable).GetEnumerator() End Function
VB.NET allows you to specify a name for the function which differs from the function you are implementing.