Writes the properties of the obj back to the section.
the object to write
the ConfigurationSection to write to