Skip to content

RowExtensions.FindField method

Finds a field by its column or field name.

public static Field? FindField(this IRow row, string? name)
parameter description
row The row.
name The column or field name.

Return Value

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

Remarks

This lookup does not search by C# property name. Use FindFieldByPropertyName for a property-name lookup, or FindFieldByPropertyOrFieldName when the name may be a property name or any column or field name.

See Also