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