C# to VB.Net

  • Thread starter Thread starter CM
  • Start date Start date
C

CM

Hi There:

I need to translate the follwing C# code to VB.Net:

public class Database : IDisposable

but I don't know how to add Implements Clauses for implementation methods of this interface

Anyone can help?

Thanks!

CM
 
public sub MyMethod(...) implements IDisposable.Method

Hi There:

I need to translate the follwing C# code to VB.Net:

public class Database : IDisposable

but I don't know how to add Implements Clauses for implementation methods of this interface

Anyone can help?

Thanks!

CM
 
Thanks for quick reply!

But sorry, may be I didnot include the context to make my question clear. Could you please give me a complete code sample?

The original C# is :

using system

using ...

Namespace ABC.BCD {

public class Database : IDisposable {

...

}

}

End Namespcae

--------------------------------------

But the following VB code results error:

Imports system

Imports ...

Namespace ABC.BCD

public class Database

public sub MyMethod() implements IDisposable.Method

End Sub

...

End Class

End Namespace



Thanks in advance!

CM

==========================

public sub MyMethod(...) implements IDisposable.Method
End sub
public sub MyMethod(...) implements IDisposable.Method

Hi There:

I need to translate the follwing C# code to VB.Net:

public class Database : IDisposable

but I don't know how to add Implements Clauses for implementation methods of this interface

Anyone can help?

Thanks!

CM
 
Thank you very much!
This seems right as there is no syntax error.
Best wishes,
CM
 

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

Similar Threads


Back
Top