Skip to main content
All docs
V24.2
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XAF0029: Use the enclosing property name in a method call

Severity: Warning

Specify the property name parameter in the method so that it matches the enclosing property. Use CodeRush templates to implement XPO properties and avoid typing and copy-paste mistakes.

To ensure the UI is consistent, business classes should notify your XAF application when their property values change. Refer to the following topic for more information: The Importance of Property Change Notifications for Automatic UI Updates.

#Examples

#Invalid Code

C#
string name;
public string Name {
    get { return name; }
    set { SetPropertyValue("Age", ref name, value); }
}

#Valid Code

C#
string name;
public string Name {
    get { return name; }
    set { SetPropertyValue(nameof(Name), ref name, value); }
}