Postal Address Parser

On our e-commerce shop, we needed to be able to format customer addresses in the correct format and layout for the destination countries, to do this I have written a simple C# postal address parser to format the input address in international formats for postal labels.

I have included 3 different formatting modes in the class but it is simple to add extra formats and countries if needed.

Usage:

ParseAddress(string CustomerName, string Organisation, string address1, string address2, string address3, string address4, string address5, string town, string county, string postcode, string country, bool returnhtml)

Returns a string containing the formatted address

The C# class can be downloaded from https://github.com/briandorey/PostalAddressParser