Added GetAllTypes extension method.