Skip to content

RowFieldsBase.FindFieldByPropertyName method

Finds a field by its C# property name.

public Field? FindFieldByPropertyName(string? propertyName)
parameter description
propertyName The C# property name.

Return Value

The matching field, or null if no field has that property.

Remarks

This lookup does not fall back to a column or field name. Use FindField to search by column or field name, or FindFieldByPropertyOrFieldName to try the property name first and then fall back to any column or field name. Use FindFieldByPublicName if that fallback should only match fields without a corresponding property.

See Also