Hi,
I am trying to convert manager templates to VB.NET but I have a problem with interface implementations in PrefetchPathElement2Collection template.
Here is a C# code:
public virtual IPrefetchPathElement2Enumerator GetEnumerator()
{
return new Enumerator(this);
}
IEnumerator IEnumerable.GetEnumerator()
{
return (IEnumerator) GetEnumerator();
}
and here is a VB.NET code that does not work, as these two functions differ only by their return type. Is ther a work around for it.
Public Overridable Function GetEnumerator() As IPrefetchPathElement2Enumerator Implements IPrefetchPathElement2List.GetEnumerator
Return New Enumerator(Me)
End Function
Public Function GetEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator
Return CType(GetEnumerator, IEnumerator)
End Function