static public void Run (CompressedStack compressedStack, ContextCallback callback, object state)
{
if (compressedStack == null)
throw new ArgumentException ("compressedStack");
Thread t = Thread.CurrentThread;
CompressedStack original = null;
try {
original = t.GetCompressedStack ();
t.SetCompressedStack (compressedStack);
callback (state);
}
finally {
if (original != null)
t.SetCompressedStack (original);
}
}
#endif