Programming Tutorial On The Way

free online programming resource on dotnet, csharp, web related topics

You have an IP address that you need to resolve into a hostname. The System.Net.Dns class is provided for simple DNS resolution functionality. The Resolve method returns an IPHostEntry that can be used to access the hostname via the HostName property. Read the rest of this entry »

Popularity: 1% [?]

You have a string representation of a host (such as www.funcode.org), and you need to obtain the IP address from this hostname. The System.Net.Dns class is provided for simple DNS resolution functionality. The Resolve method returns an IPHostEntry from which a string of addresses can be constructed and returned. Read the rest of this entry »

Popularity: 1% [?]

Parsing a URI

To parse a Uri (Uniform Resource Identifier) into its constituent parts, .NET Framework provides System.Net.Uri class that can be used to do the job. Construct a System.Net.Uri object and pass the URI to the constructor. This class constructor parses out the constituent parts of the URI and allows access to them via the Uri properties. We can then display the URI pieces individually: Read the rest of this entry »

Popularity: 2% [?]

  Next Entries »