In C#, I'm trying to obtain the value of a registry key. It is a binary key. The code I'm using
RegistryKey regKey = Registry.LocalMachine;
regKey = regKey.OpenSubKey(@"Software\Wow6432Node\Bohemia Interactive Studio\ArmA 2 OA\");
if (regKey != null)
{
string value = regKey.GetValue("KEY").ToString();
Console.WriteLine(value);
}
else
{
return;
}
When it writes to the console, all it outputs is System.Byte[]
. How can I output the exact value of the key? What am I doing wrong?