Why is this method invisible to Visual Basic
In a class written in C# I have the following method:
public abstract void OnExit(ref object state, object instance, object[] arguments,
Type[] genericTypeArguments, Type[] genericMethodArguments,
TypedReference returnValue, Exception exception);
I want to inherit this class in a VB project and to override this method:
Public Overrides Sub OnExit(ByRef state As Object, ByVal instance As Object, ByVal parameters() As Object, ByVal genericTypeArguments() As Type, ByVal genericMethodArguments() As Type, ByVal returnValue As TypedReference, ByVal exception As Exception)
However, the compiler complains and writes:
error BC30284: sub 'OnExit' cannot be declared 'Overrides' because it does not override a sub in a base class.
I suppose it is because of the TypedReference, but there is no documentation about this limitation.
Any idea?
Thank you.
Gael

