Version 2.1.0.0

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.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.