471,334 Members | 1,433 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

C# Conversion

How would I convert something like below to C# or VB.Net?

unsigned char ar[] = "AB";
unsigned int i = 0;
i = *(unsigned int *)ar;

Thanks
JK

Jan 6 '06 #1
1 1165
You could run it through a IL decompiler such as Reflector.
<ji******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
How would I convert something like below to C# or VB.Net?

unsigned char ar[] = "AB";
unsigned int i = 0;
i = *(unsigned int *)ar;

Thanks
JK

Jan 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stub | last post: by
7 posts views Thread by Michael Lehn | last post: by
31 posts views Thread by Bjørn Augestad | last post: by
11 posts views Thread by Steve Gough | last post: by
2 posts views Thread by Alex Sedow | last post: by
3 posts views Thread by Steve Richter | last post: by
reply views Thread by Lou Evart | last post: by
21 posts views Thread by REH | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.