Version 3.3.0.1

QueueFormatter<TQueue, TValue> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class QueueFormatter<TQueue, TValue> : BaseFormatter<TQueue>, IFormatter<TQueue>, IFormatter where TQueue : Queue<TValue>, new()
Custom generic formatter for the generic type definition System.Collections.Generic.Queue`1.
Inheritance
  • System.Object
  • BaseFormatter<TQueue>
  • QueueFormatter<TQueue, TValue>

Type Parameters

TQueue

TValue

Constructors

QueueFormatter()
public QueueFormatter()

Methods

DeserializeImplementation(ref TQueue, IDataReader)
Provides the actual implementation for deserializing a value of type .
protected override void DeserializeImplementation(ref TQueue value, IDataReader reader)
Parameters
TQueue value

The uninitialized value to serialize into. This value will have been created earlier using GetUninitializedObject().

Sirenix.Serialization.IDataReader reader

The reader to deserialize with.

GetUninitializedObject()
Returns null.
protected override TQueue GetUninitializedObject()
Returns
TQueue

A null value.

SerializeImplementation(ref TQueue, IDataWriter)
Provides the actual implementation for serializing a value of type .
protected override void SerializeImplementation(ref TQueue value, IDataWriter writer)
Parameters
TQueue value

The value to serialize.

Sirenix.Serialization.IDataWriter writer

The writer to serialize with.