Skip to main content
All docs
V24.1

CriteriaOperator.FormatPropertyName(String) Method

Converts a property name to a string that can be used in criteria expressions.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public static string FormatPropertyName(
    string propertyName
)

Parameters

Name Type Description
propertyName String

A property name to convert.

Returns

Type Description
String

A string that can be used in criteria expressions.

Remarks

Use the FormatPropertyName static method to format property names used in criteria expressions.

var propertyName = CriteriaOperator.FormatPropertyName(nameof(Customer.BirthDate));
// "[BirthDate]"

var propertyName = CriteriaOperator.FormatPropertyName("foo\u0009tab");
// "[foo\\ttab]"
See Also