Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry Access Question
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Registry Access Question
Miscellaneous
Thread ID:
01324009
Message ID:
01324009
Views:
75
I have this code:
public string GetRegistryValue(string sKeyName, string sKeyValue)
{
    sKeyPath = "Software\\my_app\\" + sKeyName;

    string sRetVal = (string)Registry.LocalMachine.GetValue(sKeyPath, sKeyValue, "");

    return sValue;
}
Now this is all fine when the registry value is a string, but it certainly isn't generic. What if the value is an int?


Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform