Hello.

I am Paul Kinlan.

A Developer Advocate for Chrome and the Open Web at Google.

I love the web. The web should allow anyone to access any experience that they need without the need for native install or content walled garden.

Solution to my "Problem with List and TypeConverter" Problem

Paul Kinlan

I had a problem getting TypeConverters to work with generic lists in XNA and WinForms. The designer wouldn't generate the code I wanted for properties. I needed a simple way to serialize objects, so I tried a minimalist approach. Overriding CanConvertTo and ConvertTo methods in my TypeConverter was enough for the designer to serialize the objects correctly, generating much cleaner and simpler code.

Read More

Google Search: C#, Finding the Locale

Paul Kinlan

This post discusses how to determine a user's locale in C#. For ASP.NET applications, the Request.UserLanguages array provides the user's preferred languages, with the first element being the primary locale. This can be used to set the thread's culture using CultureInfo.CreateSpecificCulture(). In Windows Forms or services, the current culture can be accessed via Thread.CurrentThread.CurrentCulture and several properties like TwoLetterISOLanguageName or DisplayName allow retrieval of locale information.

Read More