using System; using System.Collections; using System.Collections.Generic; using System.Collections.Concurrent; using System.Threading; public class Configuration { public static Dictionary properties = new Dictionary(); // called concurrently elsewhere public string getProperty(string key) { // BAD: unsynchronized access to static collection return dict["foo"]; } }