C# to VB .NET Conversion?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top