CsvObjectInfoValues<T> Class
Describes a type to CsvMetadataServices.CreateObjectInfo. Used by the source generator and by the reflection-based metadata.
public sealed class CsvObjectInfoValues<T>Type parameters
T- The type described.
Constructors
| Name | Description |
|---|---|
| CsvObjectInfoValues() |
CsvObjectInfoValues()
- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public CsvObjectInfoValues()No documentation is available.
Properties
| Name | Description |
|---|---|
| ConstructorParameters | Gets the parameters of the constructor used by CsvObjectInfoValues<T>.ObjectWithParameterizedConstructorCreator, ordered by position. |
| MembersReader | Gets the method that sets the members from a record of UTF-16 data, or null to set them with CsvPropertyInfoValues<TDeclaring, TValue>.Setter. |
| ObjectCreator | Gets the function that creates an instance with the parameterless constructor, or null. |
| ObjectWithParameterizedConstructorCreator | Gets the function that creates an instance with the values of the constructor parameters, or null. |
| Properties | Gets the columns of the type, in declaration order, base types first. |
| Utf8MembersReader | Gets the method that sets the members from a record of UTF-8 data, or null. See CsvObjectInfoValues<T>.MembersReader. |
ConstructorParameters
CsvObjectInfoValues`1.csGets the parameters of the constructor used by CsvObjectInfoValues<T>.ObjectWithParameterizedConstructorCreator, ordered by position.
public IReadOnlyList<CsvParameterInfoValues>? ConstructorParameters { get; init; }Property value
MembersReader
CsvObjectInfoValues`1.csGets the method that sets the members from a record of UTF-16 data, or null to set them with CsvPropertyInfoValues<TDeclaring, TValue>.Setter.
public CsvMembersReader<T>? MembersReader { get; init; }Property value
Remarks
The source generator writes it, so that the value of each member is converted and set without a virtual call, and its converter can be inlined. It is used when the columns of the members it sets are in the order of CsvObjectInfoValues<T>.Properties, and there is no CsvSerializerOptions.DeserializationErrorHandler: the members are then set in the order of the columns, and an error throws.
ObjectCreator
CsvObjectInfoValues`1.csObjectWithParameterizedConstructorCreator
CsvObjectInfoValues`1.csGets the function that creates an instance with the values of the constructor parameters, or null.
public Func<CsvConstructorArguments, T>? ObjectWithParameterizedConstructorCreator { get; init; }Property value
Properties
CsvObjectInfoValues`1.csGets the columns of the type, in declaration order, base types first.
public required IReadOnlyList<CsvPropertyInfo> Properties { get; init; }Property value
Utf8MembersReader
CsvObjectInfoValues`1.csGets the method that sets the members from a record of UTF-8 data, or null. See CsvObjectInfoValues<T>.MembersReader.
public Utf8CsvMembersReader<T>? Utf8MembersReader { get; init; }