in my project i have a requirement like “Set the version to something like 0.0.0.0 if the method cannot get the version from the environment variable“
and the coding where i need to look is like this array,,any one have idea about this on
string[] sade = new string[6];
.
.
.
.
sade [5] = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\secon\secservice", "CurrentVersion", "0").ToString();)
;
any one have idea about coding required here
You could do something like:
That will read the registry and check if it is already defined or not.