Class AvroLogicalTypeAttribute
- Namespace
- AvroSharp.Serialization
- Assembly
- AvroSharp.dll
The logical type of a member, instead of its type's default (timestamp-millis for a
DateTimeOffset, which is timestamp-micros by default). On a long,
int or string member it annotates the raw value, which the member keeps (the
schema gets "avrosharp.logicalType": "raw"): for values .NET's types can't hold.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class AvroLogicalTypeAttribute : Attribute
- Inheritance
-
AvroLogicalTypeAttribute
- Inherited Members
Constructors
- AvroLogicalTypeAttribute(string)
Initializes a new instance of the AvroLogicalTypeAttribute class.
Properties
- Name
Gets the logical type's name.