Are there and .NET libs out there that will interpret stored user agent strings and give you a nice strongly typed object with the contained information?
var browserCapabilities = new HttpBrowserCapabilities
{
Capabilities = new Hashtable { { string.Empty, userAgent } }
};
var capabilitiesFactory = new BrowserCapabilitiesFactory();
capabilitiesFactory.ConfigureBrowserCapabilities(new NameValueCollection(), browserCapabilities);
return browserCapabilities;