MCPcopy Create free account
hub / github.com/apache/fory / WriteData

Method WriteData

csharp/src/Fory/TimeSerializers.cs:130–135  ·  view source on GitHub ↗
(WriteContext context, in DateTime value, bool hasGenerics)

Source from the content-addressed store, hash-verified

128 public override DateTime DefaultValue => DateTime.UnixEpoch;
129
130 public override void WriteData(WriteContext context, in DateTime value, bool hasGenerics)
131 {
132 _ = hasGenerics;
133 DateTimeOffset dto = TimeCodec.ToDateTimeOffset(value);
134 TimeCodec.WriteTimestamp(context, dto);
135 }
136
137 public override DateTime ReadData(ReadContext context)
138 {

Callers

nothing calls this directly

Calls 2

ToDateTimeOffsetMethod · 0.80
WriteTimestampMethod · 0.80

Tested by

no test coverage detected