Create a gist now

Instantly share code, notes, and snippets.

private static void Get45or451FromRegistry()
{
using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey("SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\"))
{
ndpKey.GetValue("Version").Dump();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment