This question is somewhat outside the lines of this forum but I think this is the best audience. I am trying to convert a (working) C# interface/implementation to the equivalent in VB.NET. I've used the various converters that are out there and looked at MSDN but I can't get this to compile in VB.NET.
C# Interface (IFetchData)
EntityCollection<T> FetchCollection2<T>() where T : EntityBase2;
C# Implementation (FetchData.cs)
public EntityCollection<T> FetchCollection2<T>() where T : EntityBase2
VB.NET Interface (IFetchData)
Function FetchCollection2(Of T As EntityBase2)() As EntityCollection(Of T)
VB.NET Implementation (FetchData.vb)
Public Function FetchCollection2(Of T As EntityBase2)() As EntityCollection(Of T) _ Implements IFetchData.FetchCollection2
The C# implementation code will compile using the VB.NET interface or the C# interface. The VB.NET implementation does not compile.
The compile error is
Class 'FetchData' must implement 'Function FetchCollection2(Of T As SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2)() As DB2.DAL.HelperClasses.EntityCollection(Of T)' for interface 'CSharp.Interface.IFetchData'.
What am I missing here?