Table of Contents

Class FieldConverter<T>

Namespace
NuvTools.Report.Parsing.Converters
Assembly
NuvTools.Report.dll

Generic abstract base class for type-safe field converters.

public abstract class FieldConverter<T> : IFieldConverter

Type Parameters

T

The target type of the conversion.

Inheritance
FieldConverter<T>
Implements
Inherited Members

Methods

Convert(string, string?)

Converts the raw string value to the target type.

public abstract T? Convert(string value, string? format)

Parameters

value string

The raw string value from the field.

format string

An optional format string.

Returns

T

The converted value, or null if the value cannot be converted.