I would avoid writing configuration access code by hand. It's too easy to foobar. Check out this addin that lets you visually design your configurations. Let it write the boilerplate code for you while you focus solely on the visual designer and your problem domain.