2 using System
.Net
.Sockets
;
9 public static int Main () {
12 Console.WriteLine ("address is " + IPAddress.NetworkToHostOrder (0x0100007f).ToString("X"));
15 IPAddress testadd
= IPAddress
.Parse ("127.0.0.1");
16 Console
.WriteLine("address is " + testadd
.Address
.ToString ("X"));
17 if (testadd
.Address
!= 0x0100007f)
21 IPAddress hostadd
= new IPAddress(0x0100007f);
22 Console
.WriteLine("address is " + hostadd
.ToString());
23 if (hostadd
.ToString() != "127.0.0.1")