Mono.Events.CreateExceptionRoutedEventArgsEventHandlerDispatcher C# (CSharp) Метод

CreateExceptionRoutedEventArgsEventHandlerDispatcher() публичный статический Метод

public static CreateExceptionRoutedEventArgsEventHandlerDispatcher ( EventHandler handler ) : UnmanagedEventHandler
handler EventHandler
Результат UnmanagedEventHandler
		public static UnmanagedEventHandler CreateExceptionRoutedEventArgsEventHandlerDispatcher (EventHandler <ExceptionRoutedEventArgs> handler)
		{
			return SafeDispatcher ( (sender, calldata, closure)
						=> { object o = NativeDependencyObjectHelper.FromIntPtr (closure);
						     ExceptionRoutedEventArgs args = ExceptionRoutedEventArgs.FromErrorEventArgs (calldata);
						     args.OriginalSource = o;
						     handler (o, args); } );
		}
Events