When saving values to the registry, I like to specify my own folder for my settings.

The CreateSubKey() method allows you to set the folder name. Since the subkey can be null, after checking it for null, use the nullable value type (?) to reference the subkey to get and set values.