Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.621 kb
using System.Net;
using System.Net.Sockets;
using System.IO;
using System;
namespace T {
public class T {
public static int Main () {
/*
Console.WriteLine ("address is " + IPAddress.NetworkToHostOrder (0x0100007f).ToString("X"));
*/
IPAddress testadd = IPAddress.Parse ("127.0.0.1");
Console.WriteLine("address is " + testadd.Address.ToString ("X"));
if (testadd.Address != 0x0100007f)
return 1;
IPAddress hostadd = new IPAddress(0x0100007f);
Console.WriteLine("address is " + hostadd.ToString());
if (hostadd.ToString() != "127.0.0.1")
return 1;
return 0;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.