Class TabularRecordAttribute
Instructs the source generator to generate a record handler for the target type. This class cannot be inherited.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public sealed class TabularRecordAttribute : Attribute
- Inheritance
-
TabularRecordAttribute
Remarks
An instance of the generated record handler will be automatically added to the Handlers shared collection, which is used to resolve the required handler for reading and writing records. Use the TabularFieldOrderAttribute attribute to map a type member to a tabular field, and optional attributes TabularFieldNameAttribute and TabularConverterAttribute<T> to define a field name and apply a value converter.
Constructors
TabularRecordAttribute()
Initializes a new instance of the TabularRecordAttribute class.
public TabularRecordAttribute()