This C# library can be used to convert from one mapping coordinate system to another, for instance converting latitude/longitude to UK OS coordinates. It is based on the JCoord class library and is therefore licensed under the GPL. It also should have all the features available in that library.
Download the source code (requires Visual Studio 2008 for the Windows project and VS 2010 for the Windows Phone project).
Download the Windows assembly (requires .NET Framework 2.0).
Download the Windows Phone assembly.
And here's a simple example of usage
using System; using DotNetCoords; namespace TestDotNetCoords { class Program { static void Main(string[] args) { // create an OS grid reference object OSRef osRef = new OSRef(535598, 182120); Console.WriteLine("OS reference is " + osRef.ToString()); Console.WriteLine("Grid reference is " + osRef.ToSixFigureString()); LatLng latLng = osRef.ToLatLng(); Console.WriteLine("Lat/long using OSGB36 datum is " + latLng.ToString()); latLng.ToWGS84(); Console.WriteLine("Lat/long using WGS84 datum is " + latLng.ToString()); MGRSRef mgrsRef = latLng.ToMGRSRef(); Console.WriteLine("MGRS reference is " + mgrsRef.ToString()); UTMRef utmRef = mgrsRef.ToUTMRef(); Console.WriteLine("UTM reference is " + utmRef.ToString()); Console.ReadLine(); } } }