public static UnmanagedEventHandler CreateDownloadProgressEventArgsEventHandlerDispatcher (EventHandler <DownloadProgressEventArgs> handler) { return SafeDispatcher ( (sender, calldata, closure) => handler (NativeDependencyObjectHelper.FromIntPtr (closure), new DownloadProgressEventArgs (calldata)) ); }