Table of Contents

Class AvroFieldPositionAttribute

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

The field's position among the record's fields, like System.Text.Json's [JsonPropertyOrder] (not Avro's "order", which is the field's sort order). Needed only when the fields are declared in more than one part of a partial type, whose order the compiler doesn't fix; then every field needs it.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class AvroFieldPositionAttribute : Attribute
Inheritance
AvroFieldPositionAttribute
Inherited Members

Constructors

AvroFieldPositionAttribute(int)

Initializes a new instance of the AvroFieldPositionAttribute class.

Properties

Position

Gets the position, from 0.