C# 클래스 Spring.Objects.Events.Support.EventManipulationUtils

Utility class to aid in the manipulation of events and delegates.
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

공개 메소드들

메소드 설명
GetHandlerDelegate ( Type delegateType, object targetSubscriber, MethodInfo targetSubscriberDelegateMethod ) : Delegate

Returns a new instance of the requested Delegate.

Often used to wire subscribers to event publishers.

GetMethodInfoMatchingSignature ( MethodInfo invoke, Type subscriberType ) : MethodInfo

Queries the input type for a MethodInfo signature matching the input MethodInfo signature.

Typically used to query a potential subscriber to see if they implement an event handler.

비공개 메소드들

메소드 설명
EventManipulationUtils ( ) : System

Creates a new instance of the EventManipulationUtilities class.

This is a utility class, and as such has no publicly visible constructors.

메소드 상세

GetHandlerDelegate() 공개 정적인 메소드

Returns a new instance of the requested Delegate.

Often used to wire subscribers to event publishers.

public static GetHandlerDelegate ( Type delegateType, object targetSubscriber, MethodInfo targetSubscriberDelegateMethod ) : Delegate
delegateType System.Type /// The of delegate to create. ///
targetSubscriber object /// The target subscriber object that contains the delegate implementation. ///
targetSubscriberDelegateMethod System.Reflection.MethodInfo /// referencing the delegate method on the subscriber. ///
리턴 System.Delegate

GetMethodInfoMatchingSignature() 공개 정적인 메소드

Queries the input type for a MethodInfo signature matching the input MethodInfo signature.
Typically used to query a potential subscriber to see if they implement an event handler.
public static GetMethodInfoMatchingSignature ( MethodInfo invoke, Type subscriberType ) : MethodInfo
invoke System.Reflection.MethodInfo to match against
subscriberType System.Type to query
리턴 System.Reflection.MethodInfo