Imagine a function like this:
private static ConcurrentList list = new ConcurrentList(); public void Add(object x) { Task.Factory.
What about making a public property for the list?
public ConcurrentList List { get; set; }
or maybe make it a public field when in DEBUG build:
#if DEBUG public static ConcurrentList list = new ConcurrentList(); #else private static ConcurrentList list = new ConcurrentList(); #endif