sile007
1/17/2018 - 3:58 PM

c# Registry List Value

RegistryKey OurKey = Registry.LocalMachine;
OurKey = OurKey.OpenSubKey(@"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{64f800fa-8a73-489b-8d2d-59baf4760b1f}", false);
string test = OurKey.GetValue("IPAddress").ToString(); 

foreach(string test2 in (dynamic)OurKey.GetValue("IPAddress"))
{
   Console.Write(test2);
}

Console.ReadKey();