Translation to VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Could I ask for some help translating some c# to vb.net? The typing of LDelegate I think is right, but the delegate creation is where I am stumbling

ORIGINAL C

Type LDelegateType = LWinFormsAssembly.GetTyp

"System.HandleChangeEventHandler"
tru
)

Delegate LAddEventHandler = Delegate.CreateDelegat

LDelegateType
typeof(HDCClass)
"CollectorHandleAdded
)

MY VB.NET TRANSLATIO

Dim LDelegateType As Type = LWinFormsAssembly.GetType("System.HandleChangeEventHandler", True

Dim LAddEventHandler As [Delegate] = System.Delegate.CreateDelegate(LDelegateType, GetType(HDCClassLibrary), "CollectorHandleAdded"

Thanks
JT
 
Could I ask for some help translating some c# to vb.net? The typing of LDelegate I think is right, but the delegate creation is where I am stumbling.

Your translation looks correct to me. Is it not working?



Mattias
 
Hi JT,

Based on my understanding, you need some help of translating C# code into
VB.net.

I think your translated VB.net code should be correct. Have you tried it?

Also, there is a web page, that may help you translate C# into VB.net, but
it may help some small translation error, For your information:
http://authors.aspalliance.com/aldotnet/examples/translate.aspx

=====================================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi JT,

I am glad it can help you. I think this page is really helpful :-)

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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

Back
Top