System.Windows.Threading.Dispatcher.Dispose C# (CSharp) Method

Dispose() private method

private Dispose ( ) : void
return void
		void Dispose () {
			lock (queuedOperations) {
				if (callback != null)
					NativeMethods.time_manager_remove_tick_call (NativeMethods.surface_get_time_manager (surface.Native), callback, IntPtr.Zero);
				pending = false;
#if DEBUG_DISPATCHER
				if (queuedOperations.Count > 0) {
					Console.WriteLine ("Dispatcher was destroyed with " + queuedOperations.Count + " call to be processed");
					foreach (DispatcherOperation op in queuedOperations) {
						Console.WriteLine (op.GetDebugString ());
					}
				}
#endif
				queuedOperations.Clear ();
			}
		}