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