Show / Hide Table of Contents

Class NotifyPropertyChangedInvocatorAttribute

Indicates that the method is contained in a type that implements System.ComponentModel.INotifyPropertyChanged interface and this method is used to notify that some property value changed.

Inheritance
System.Object
NotifyPropertyChangedInvocatorAttribute
Namespace: MAT.Atlas.Api.Core.Presentation
Assembly: MAT.Atlas.Api.Core.dll
Syntax
public sealed class NotifyPropertyChangedInvocatorAttribute : Attribute
Remarks

The method should be non-static and conform to one of the supported signatures:

Examples
public class Foo : INotifyPropertyChanged {
public event PropertyChangedEventHandler PropertyChanged;

[NotifyPropertyChangedInvocator]
protected virtual void NotifyChanged(string propertyName) { ... }

string _name;

public string Name {
get { return _name; }
set { _name = value; NotifyChanged("LastName"); /* Warning */ }
}
}
Examples of generated notifications:

Constructors

NotifyPropertyChangedInvocatorAttribute()

Default constructor.

Declaration
public NotifyPropertyChangedInvocatorAttribute()

NotifyPropertyChangedInvocatorAttribute(String)

Constructor taking a parameter name.

Declaration
public NotifyPropertyChangedInvocatorAttribute([NotNull] string parameterName)
Parameters
Type Name Description
System.String parameterName

The parameter name.

Properties

ParameterName

Gets the parameter name.

Declaration
[CanBeNull]
public string ParameterName { get; }
Property Value
Type Description
System.String
In This Article
Back to top Generated by DocFX