public void Initialize() { if (_initialized != 0) { return; } if (System.Threading.Interlocked.Exchange(ref _initialized, 1) == 0) { // add mscorlib ClrModule.GetInstance().AddReference(typeof(string).Assembly); // add system.dll ClrModule.GetInstance().AddReference(typeof(System.Diagnostics.Debug).Assembly); } }