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
 
Back
Top