These days I have been doing some factory patterns and I think you can also refer to

http://msdn2.microsoft.com/en-us/library/ms954600.aspx