Meziantou.Framework.Csv.Serialization namespace

Classes

NameDescription
CsvAttributeThe base class of the attributes that control the CSV serialization.
CsvColumnIndexAttributeSets the 0-based index of the column of a property or a field.
CsvConstructorAttributeSelects the constructor used to create the instances when reading CSV data.
CsvConverterConverts a value of a column to or from text. Derive from CsvConverter<T> or CsvConverterFactory.
CsvConverterAttributeSets the converter of a property or a field.
CsvConverterContextThe context of the conversion of the values of a column.
CsvConverterFactoryCreates converters for a family of types, such as the enumerations or the generic instances of a type.
CsvConverter<T>Converts the values of a column of type T to or from text.
CsvDeserializationErrorContextDescribes an error of CsvSerializer while it converts records to objects, passed to CsvSerializerOptions.DeserializationErrorHandler.
CsvFormatAttributeSets the format string used to write the values of a property or a field, and to read the dates and times.
CsvIgnoreAttributeExcludes a property or a field from the CSV serialization.
CsvIncludeAttributeIncludes a non-public property, or a field, in the CSV serialization.
CsvNamingPolicyDetermines the naming policy used to convert a CLR member name to a CSV column name.
CsvPropertyNameAttributeSets the name of the column of a property or a field. It takes precedence over CsvSerializerOptions.PropertyNamingPolicy.
CsvPropertyOrderAttributeSets the order of the column of a property or a field. The members are sorted by order, then in declaration order, base types first. Default is 0.
CsvRequiredAttributeRequires the column of a property or a field: reading data without this column, or a record without a value for it, throws a CsvException.
CsvSerializableAttributeDeclares a type for which a CsvSerializerContext generates the serialization metadata.
CsvSerializerReads CSV data as a list of objects, and writes objects as CSV data. Each record is an object; each column is a property or a field.
CsvSerializerContextThe base class of the serializer contexts generated by the source generator, which provide the metadata of types without reflection.
CsvSerializerOptionsOptions that control how CsvSerializer reads and writes records.
CsvSourceGenerationOptionsAttributeSets the options of the Default instance of a generated CsvSerializerContext, and the members the generator includes.

Interfaces

NameDescription
ICsvOnDeserializedNotifies an object after its members are set, when reading CSV data.
ICsvOnDeserializingNotifies an object before its members are set, when reading CSV data.
ICsvOnSerializedNotifies an object after its members are written.
ICsvOnSerializingNotifies an object before its members are written.
ICsvTypeInfoResolverProvides the serialization metadata of types.

Enums

NameDescription
CsvDeserializationErrorActionSpecifies what the serializer does with an error, as returned by CsvSerializerOptions.DeserializationErrorHandler.
CsvDeserializationErrorKindSpecifies the kind of error reported to CsvSerializerOptions.DeserializationErrorHandler.
CsvKnownNamingPolicySpecifies a built-in CsvNamingPolicy for use with the source generator.
CsvMissingColumnHandlingSpecifies how the serializer handles a member that has no column in the header row.
CsvUnmappedColumnHandlingSpecifies how the serializer handles a column of the header row that has no member.

Delegates

NameDescription
CsvDeserializationErrorHandlerRepresents the method that decides what CsvSerializer does when a record cannot be converted to an object.