I\'m getting a \"Unreachable code detected\" message in Visual Studio at the point i++ in my code below. Can you spot what I\'ve done wrong?
try
{
RegistryKe
Although your problem is solved i need to tell you this, you can just using the CreateSubKey() method for your purpose. I think It's a better choice. :)
//Creates a new subkey or opens an existing subkey for write access.
var ourKey = Registry.CurrentUser.CreateSubKey("Software\\Resources\\Shared");