Added GetAllProperties extension method for reflection