CsvSerializableAttribute Class
Declares a type for which a CsvSerializerContext generates the serialization metadata.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class CsvSerializableAttribute : CsvAttribute- Inheritance
CsvAttributeCsvSerializableAttribute
Constructors
| Name | Description |
|---|---|
| CsvSerializableAttribute(Type) | Declares a type for which a CsvSerializerContext generates the serialization metadata. |
CsvSerializableAttribute(Type)
CsvSerializableAttribute.csDeclares a type for which a CsvSerializerContext generates the serialization metadata.
public CsvSerializableAttribute(Type type)Parameters
typeType- The type of the records to serialize.
Properties
| Name | Description |
|---|---|
| Type | Gets the type of the records to serialize. |
| TypeInfoPropertyName | Gets or sets the name of the generated property that returns the metadata of the type. Default is the name of the type. |