VB.NET Example:

imports Sockets4Whois


Public Class test
public shared sub Main()
dim w as New Whois()
w.SetServer("whois.register.com")
Console.WriteLine(w.Query("powlette.com"))
End Sub
End Class

C# Example:

using System;
using Sockets4Whois;

class Class1
{
[STAThread]
static void Main(string[] args)
{
try
{
    Whois w = new Whois("whois.networksolutions.com", 43);
    Console.WriteLine(w.Query("powlette.com"));
    Console.WriteLine(w.GetServer());
    Console.WriteLine(w.GetEndPoint());
}
catch (Exception e)
{
    Console.WriteLine("whois failed: " + e);
}
Console.ReadLine();
}
}
End Class