NotifyPropertyChangingAdapter.AddHandler Method |
Adds a handler to PropertyChanging event.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract Delegate AddHandler( Object instance, Action<string> handler )
Parameters
- instance
- Type: System.Object
Instance. - handler
- Type: System.Action<String>
Handler delegate that receives property name as an argument.
Return Value
Type: DelegateDelegate that was registered to the event or
Field Value
Type: Delegatenull if instance does not implement the represented interface.
An implementation should never return null, instead it should return the result of this.Next.AddHandler.