Skip to content

Instantly share code, notes, and snippets.

@jrob5756
Created September 24, 2018 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrob5756/b7c031342e6de22a10a66113d637395b to your computer and use it in GitHub Desktop.
Save jrob5756/b7c031342e6de22a10a66113d637395b to your computer and use it in GitHub Desktop.
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