Version 2.1.0.0

DateTimeOffsetFormatter class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class DateTimeOffsetFormatter : MinimalBaseFormatter<DateTimeOffset>, IFormatter<DateTimeOffset>, IFormatter
Custom formatter for the System.DateTimeOffset type.
Inheritance

Constructors

DateTimeOffsetFormatter()
public DateTimeOffsetFormatter()

Methods

Read(ref DateTimeOffset, IDataReader)
Reads into the specified value using the specified reader.
protected override void Read(ref DateTimeOffset value, IDataReader reader)
Parameters
System.DateTimeOffset value

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

Write(ref DateTimeOffset, IDataWriter)
Writes from the specified value using the specified writer.
protected override void Write(ref DateTimeOffset value, IDataWriter writer)
Parameters
System.DateTimeOffset value

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.