System C# by API

using System;
using System.Collections;
class MainClass
{
    public static void Main()
    {
        Console.WriteLine("Environment Variables");
        foreach (DictionaryEntry var in Environment.GetEnvironmentVariables())
            Console.WriteLine("{0}={1}", var.Key, var.Value);
        
    }
}