using System.Collections.Generic;
public static void Main()
Dictionary<string, string> dictionary = new Dictionary<string, string>()
List<string> keys = new List<string>()
Console.WriteLine("Dictionary keys: " + string.Join(",", dictionary.Keys));
Console.WriteLine("List keys: " + string.Join(",", dictionary.Keys));
Console.WriteLine("Except: " + string.Join(",", dictionary.Keys.Except(keys)));
Console.WriteLine("Intersect: " + string.Join(",", dictionary.Keys.Intersect(keys)));
System.Diagnostics.Process proc = System.Diagnostics.Process.GetCurrentProcess();
Console.WriteLine("Current process: {0}", proc.ToString());
Console.WriteLine("Private Memory: {0}", proc.PrivateMemorySize64);
Console.WriteLine("Virtual Memory: {0}", proc.VirtualMemorySize64);
Console.WriteLine("Working Set: {0}", proc.WorkingSet64);
Console.WriteLine("Paged Memory: {0}", proc.PagedMemorySize64);
Console.WriteLine("Paged System Memory: {0}", proc.PagedSystemMemorySize64);
Console.WriteLine("Non-paged System Memory: {0}", proc.NonpagedSystemMemorySize64);