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.v25.1.dll
NuGet Package: DevExpress.Data
Declaration
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