Stuggling to understand some C# syntax and convert it to VB.
For:
public class wwBusinessObject<TEntity,TContext>
where TEntity: class, new()
where TContext: wwDataContext, new()
...
this.TableInfo = new TableInfo(Context, typeof(TEntity));
I Have:
Public Class BaseClass(Of TEntity As {Class, New})
...
Me.TableInfo = New TableInfo(db, TypeOf (TEntity))
however it is telling me TEntity is a type and cannot be used as an expression.
I guess
where TEntity: class, new()
creates an instance of TEntity? Do you know how I achieve this in VB keeping in mind we have no idea what type of class TEntity is?
Thanks