CsvPropertyInfoValues<TDeclaring, TValue> Class
Describes a column to CsvMetadataServices.CreatePropertyInfo. Used by the source generator and by the reflection-based metadata.
public sealed class CsvPropertyInfoValues<TDeclaring, TValue>Type parameters
TDeclaring- The type that declares the member.
TValue- The type of the member.
Constructors
| Name | Description |
|---|---|
| CsvPropertyInfoValues() |
CsvPropertyInfoValues()
CsvPropertyInfoValues`2.cs- 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 CsvPropertyInfoValues()No documentation is available.
Properties
| Name | Description |
|---|---|
| ColumnIndex | Gets the index set with CsvColumnIndexAttribute, or null. |
| ColumnName | Gets the name of the column set with CsvPropertyNameAttribute, or null to apply CsvSerializerOptions.PropertyNamingPolicy to CsvPropertyInfoValues<TDeclaring, TValue>.MemberName. |
| Converter | Gets the converter set with CsvConverterAttribute, or null. |
| DefaultConverter | Gets the converter to use when neither CsvPropertyInfoValues<TDeclaring, TValue>.Converter nor CsvSerializerOptions.Converters converts TValue, or null for the built-in converters. |
| Format | Gets the format string set with CsvFormatAttribute, or null. |
| Getter | Gets the function that gets the value of the member, or null when the column is not written. |
| IsRequired | Gets a value indicating whether the column is required. |
| MemberName | Gets the name of the member. |
| Order | Gets the order set with CsvPropertyOrderAttribute. |
| ParameterIndex | Gets the position of the constructor parameter that receives the value of the column, or -1. |
| Setter | Gets the function that sets the value of the member, or null when the member is set by the constructor or is not read. |
ColumnIndex
CsvPropertyInfoValues`2.csGets the index set with CsvColumnIndexAttribute, or null.
public int? ColumnIndex { get; init; }Property value
ColumnName
CsvPropertyInfoValues`2.csGets the name of the column set with CsvPropertyNameAttribute, or null to apply CsvSerializerOptions.PropertyNamingPolicy to CsvPropertyInfoValues<TDeclaring, TValue>.MemberName.
public string? ColumnName { get; init; }Property value
Converter
CsvPropertyInfoValues`2.csGets the converter set with CsvConverterAttribute, or null.
public CsvConverter? Converter { get; init; }Property value
DefaultConverter
CsvPropertyInfoValues`2.csGets the converter to use when neither CsvPropertyInfoValues<TDeclaring, TValue>.Converter nor CsvSerializerOptions.Converters converts TValue, or null for the built-in converters.
public CsvConverter<TValue>? DefaultConverter { get; init; }Property value
Gets the format string set with CsvFormatAttribute, or null.
public string? Format { get; init; }Property value
Gets the function that gets the value of the member, or null when the column is not written.
public Func<TDeclaring, TValue>? Getter { get; init; }Property value
IsRequired
CsvPropertyInfoValues`2.csMemberName
CsvPropertyInfoValues`2.csParameterIndex
CsvPropertyInfoValues`2.csGets the function that sets the value of the member, or null when the member is set by the constructor or is not read.
public CsvPropertySetter<TDeclaring, TValue>? Setter { get; init; }