Class CsvTypeMapAttribute<T, TValue>
- Namespace
- FlameCsv.Attributes
- Assembly
- FlameCsv.Core.dll
Applies source generated binding logic to the annotated partial class.
[AttributeUsage(AttributeTargets.Class)]
public sealed class CsvTypeMapAttribute<T, TValue> : Attribute where T : unmanaged, IBinaryInteger<T>
Type Parameters
TTValue
- Inheritance
-
objectCsvTypeMapAttribute<T, TValue>
Remarks
CsvTypeMap<T, TValue> instances should be stateless and immutable.
To use custom value creation logic, create a parameterless instance or static method CreateInstance()
that returns TValue or a subtype.
Automatically creates a Instance-property if the type has a parameterless constructor,
and no member with that name already exists.