C
Coder
Hi,
Im converting some code from C# to VB .NET and it's giving me some trouble.
Below are the snippets. I get the syntax error "End of statement expected"
so I added implements and it gives me '.' expected.
Any ideas?
If ya can help i will give you a free copy of the software
Thanks.
C# ------- No Errors
namespace nsTest
{
public delegate void MyDelegate();
public class test
{
public event MyDelegate MyEvent;
}
}
VB .NET ------ Errors
Namespace nsTest
Public Delegate Sub MyDelegate()
Public Class test
Public Event MyEvent MyDelegate '<-- error this way = End of
statement expected
Public Event MyEvent MyDelegate '<-- error this way = '.' expected
End Class
End Namespace
Im converting some code from C# to VB .NET and it's giving me some trouble.
Below are the snippets. I get the syntax error "End of statement expected"
so I added implements and it gives me '.' expected.
Any ideas?
If ya can help i will give you a free copy of the software
Thanks.
C# ------- No Errors
namespace nsTest
{
public delegate void MyDelegate();
public class test
{
public event MyDelegate MyEvent;
}
}
VB .NET ------ Errors
Namespace nsTest
Public Delegate Sub MyDelegate()
Public Class test
Public Event MyEvent MyDelegate '<-- error this way = End of
statement expected
Public Event MyEvent MyDelegate '<-- error this way = '.' expected
End Class
End Namespace