7 [__DynamicallyInvokable]
12 private readonly Action<T> m_handler;
17 [__DynamicallyInvokable]
18 [method: __DynamicallyInvokable]
22 [__DynamicallyInvokable]
26 m_invokeHandlers = InvokeHandlers;
31 [__DynamicallyInvokable]
44 [__DynamicallyInvokable]
47 Action<T> handler = m_handler;
49 if (handler !=
null || progressChanged !=
null)
51 m_synchronizationContext.Post(m_invokeHandlers, value);
57 [__DynamicallyInvokable]
63 private void InvokeHandlers(
object state)
66 Action<T> handler = m_handler;
69 progressChanged?.Invoke(
this, val);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
void Report(T value)
Reports a progress update.
delegate void SendOrPostCallback(object state)
Represents a method to be called when a message is to be dispatched to a synchronization context.
virtual void OnReport(T value)
Reports a progress change.
Defines a provider for progress updates.
EventHandler< T > ProgressChanged
Raised for each reported progress value.
Progress()
Initializes the T:System.Progress`1 object.
Provides the basic functionality for propagating a synchronization context in various synchronization...
Progress(Action< T > handler)
Initializes the T:System.Progress`1 object with the specified callback.
Provides an T:System.IProgress`1 that invokes callbacks for each reported progress value.