Table of Contents

Class CsvStringPoolingAttribute

Namespace
FlameCsv.Attributes
Assembly
FlameCsv.Core.dll

Configures the member to use pooled strings.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter)]
public sealed class CsvStringPoolingAttribute : CsvConverterAttribute
Inheritance
CsvStringPoolingAttribute
Inherited Members

Methods

TryCreateConverterOrFactory<T>(Type, CsvOptions<T>, out CsvConverter<T>?)

Attempts to create a converter for the target member or parameter.
If the configured converter is not for token type T, this method should return false.
If the converter is not for the target type, this method should throw a CsvConfigurationException.

protected override bool TryCreateConverterOrFactory<T>(Type targetType, CsvOptions<T> options, out CsvConverter<T>? converter) where T : unmanaged, IBinaryInteger<T>

Parameters

targetType Type

Type to convert

options CsvOptions<T>

Current configuration instance

converter CsvConverter<T>

Returns

bool

Converter instance

Type Parameters

T

Exceptions

CsvConfigurationException

Thrown if targetType is not valid for the member, or is not present in the configuration and has no parameterless constructor.

See Also