PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelNotify­Property­Changing­AdapterAdd­Handler
Open sandboxFocus

NotifyPropertyChangingAdapter.AddHandler Method

AddHandler(Object, Action<String>)

Adds a handler to PropertyChanging event.

Declaration
public abstract Delegate AddHandler(object instance, Action<string> handler)
Parameters
Type Name Description
Object instance

Instance.

System.Action<System.String> handler

Handler delegate that receives property name as an argument.

Returns
Type Description
System.Delegate

System.Delegate that was registered to the event or null if instance does not implement the represented interface.

Remarks

An implementation should never return null, instead it should return the result of this.Next.AddHandler.