Skip to content

Instantly share code, notes, and snippets.

@jrob5756
Created Sep 24, 2018
Embed
What would you like to do?
public static class FullUtil
{
public static void Run()
{
var key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");
var product = key.GetValue("ProductName");
Console.WriteLine($"Hello from .NET Framework on {product}!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment