Esempio n. 1
0
 internal void Undo()
 {
     SynchronizationContext.SetSynchronizationContext(m_sc);
     ExecutionContext.Restore(m_ec);
 }
Esempio n. 2
0
File: Thread.cs Progetto: shana/mono
		internal void RestoreExecutionContext (ref ExecutionContext.Switcher switcher)
		{
			if (switcher.IsEmpty) {
				_ec = null;
				return;
			}

			switcher.Restore (_ec);
		}