Create IP Address from address specified as an Int64 in CSharp
Description
The following code shows how to create IP Address from address specified as an Int64.
Example
using System;//from w w w.j av a 2 s. c om
using System.Net;
using System.Net.Sockets;
public class Example
{
public static void Main()
{
IPAddress address = new IPAddress(0x2112188f);
Console.WriteLine(address.ToString());
}
}
The code above generates the following result.