示例#1
0
 internal void Undo()
 {
     SynchronizationContext.SetSynchronizationContext(m_sc);
     ExecutionContext.Restore(m_ec);
 }
示例#2
0
文件: Thread.cs 项目: shana/mono
		internal void RestoreExecutionContext (ref ExecutionContext.Switcher switcher)
		{
			if (switcher.IsEmpty) {
				_ec = null;
				return;
			}

			switcher.Restore (_ec);
		}