What is the equivalent c# code of the java snippet?

  • Thread starter Thread starter peter 9
  • Start date Start date
P

peter 9

Guest
Hi,

I need use the following a piece of java code in my c# program. Can anyone help me to convert it into c#?

byte[] byteAddress = java.net.InetAddress.getLocalHost().getAddress();
int intAddress =
((byteAddress[0] ^ byteAddress[1] ^ byteAddress[2]) << 8)
| byteAddress[3];


Thank you very much.

Continue reading...
 
Back
Top