I am making an applications that works for multiple users and use data from registry that is written by another user.
currently I am writing to HKCU. and it is not working because HKCU is local. and after it failed i tried to write on Local Machine but it has some permision issues.
So what is the suitable location to write the registry in this scenario.
I am using following code to create to key.
RegistryKey regKey = Registry.CurrentUser;
RegistryKey subKey = regKey.CreateSubKey(subKeyName);
What is the use of default keyword in C#? Is it introduced in C# 3.0 ?