CsvPropertyNameAttribute Class
Sets the name of the column of a property or a field. It takes precedence over CsvSerializerOptions.PropertyNamingPolicy.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class CsvPropertyNameAttribute : CsvAttribute- Inheritance
CsvAttributeCsvPropertyNameAttribute
Constructors
| Name | Description |
|---|---|
| CsvPropertyNameAttribute(string) | Sets the name of the column of a property or a field. It takes precedence over CsvSerializerOptions.PropertyNamingPolicy. |
CsvPropertyNameAttribute(string)
CsvPropertyNameAttribute.csSets the name of the column of a property or a field. It takes precedence over CsvSerializerOptions.PropertyNamingPolicy.
public CsvPropertyNameAttribute(string name)Parameters
namestring- The name of the column.
Properties
| Name | Description |
|---|---|
| Name | Gets the name of the column. |