Interface IFieldConverter
- Namespace
- NuvTools.Report.Parsing.Converters
- Assembly
- NuvTools.Report.dll
Defines a converter that transforms a raw string value into a typed object.
public interface IFieldConverter
Methods
Convert(string, string?)
Converts the raw string value from a field into the target type.
object? Convert(string value, string? format)
Parameters
valuestringThe raw string value from the field.
formatstringAn optional format string (e.g. date format).
Returns
- object
The converted value, or
nullif the value cannot be converted.