Version 3.3.1.2

TimeSpanFormatter class

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

Constructors

TimeSpanFormatter()
public TimeSpanFormatter()

Methods

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

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

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

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.