Click or drag to resize
NotifyPropertyChangedInvocatorAttribute Class
Indicates that the method is contained in a type that implements INotifyPropertyChanged interface and this method is used to notify that some property value changed
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ozeki.CommonNotifyPropertyChangedInvocatorAttribute

Namespace: Ozeki.Common
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax
public sealed class NotifyPropertyChangedInvocatorAttribute : Attribute

The NotifyPropertyChangedInvocatorAttribute type exposes the following members.

Constructors
  NameDescription
Public methodNotifyPropertyChangedInvocatorAttribute
Initializes a new instance of the NotifyPropertyChangedInvocatorAttribute class
Public methodNotifyPropertyChangedInvocatorAttribute(String)
Initializes a new instance of the NotifyPropertyChangedInvocatorAttribute class
Top
Properties
  NameDescription
Public propertyParameterName
Top
Remarks
The method should be non-static and conform to one of the supported signatures: NotifyChanged(string)NotifyChanged(params string[])NotifyChanged{T}(Expression{Func{T}})NotifyChanged{T,U}(Expression{Func{T,U}})SetProperty{T}(ref T, T, string)
Examples
public class Foo : INotifyPropertyChanged {
  public event PropertyChangedEventHandler PropertyChanged;
  [NotifyPropertyChangedInvocator]
  protected virtual void NotifyChanged(string propertyName) { ... }

  private string _name;
  public string Name {
    get { return _name; }
    set { _name = value; NotifyChanged("LastName"); /* Warning */ }
  }
}
Examples of generated notifications: NotifyChanged("Property")NotifyChanged(() => Property)NotifyChanged((VM x) => x.Property)SetProperty(ref myField, value, "Property")
See Also