Skip to content

Instantly share code, notes, and snippets.

@crowcoder
Created December 22, 2015 19:12
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 crowcoder/ac5df71b9e7bb924ec97 to your computer and use it in GitHub Desktop.
Save crowcoder/ac5df71b9e7bb924ec97 to your computer and use it in GitHub Desktop.
StringBuilder sb = new StringBuilder();
foreach (DictionaryEntry de in Environment.GetEnvironmentVariables())
{
sb.AppendFormat("{0} : {1}", de.Key.ToString(), de.Value.ToString()).AppendLine();
}
Console.WriteLine(sb.ToString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment