3 writes to controlToSendTo
System.Windows.Forms (3)
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (3)
42controlToSendTo = context.MarshalingControl; 48controlToSendTo = marshalingControl; 72controlToSendTo = null;
12 references to controlToSendTo
System.Windows.Forms (12)
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (12)
44Debug.Assert(controlToSendTo.IsHandleCreated, "Marshaling control should have created its handle in its ctor."); 50Debug.Assert(controlToSendTo.IsHandleCreated, "Marshaling control should have created its handle in its ctor."); 68if (controlToSendTo != null) { 69if (!controlToSendTo.IsDisposed) { 70controlToSendTo.Dispose(); 84Debug.Assert(controlToSendTo != null, "Should always have the marshaling control by this point"); 86if (controlToSendTo != null) { 87controlToSendTo.Invoke(d, new object[] { state }); 93Debug.Assert(controlToSendTo != null, "Should always have the marshaling control by this point"); 95if (controlToSendTo != null) { 96controlToSendTo.BeginInvoke(d, new object[] { state }); 102return new WindowsFormsSynchronizationContext(controlToSendTo, DestinationThread);