Version 3.3.0.1

MultiDimensionalArrayFormatter<TArray, TElement> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class MultiDimensionalArrayFormatter<TArray, TElement> : BaseFormatter<TArray>, IFormatter<TArray>, IFormatter where TArray : class
Formatter for all arrays with more than one dimension.
Inheritance
  • System.Object
  • BaseFormatter<TArray>
  • MultiDimensionalArrayFormatter<TArray, TElement>
See Also

Type Parameters

TArray

The type of the formatted array.

TElement

The element type of the formatted array.

Constructors

MultiDimensionalArrayFormatter()
public MultiDimensionalArrayFormatter()

Methods

DeserializeImplementation(ref TArray, IDataReader)
Provides the actual implementation for deserializing a value of type .
protected override void DeserializeImplementation(ref TArray value, IDataReader reader)
Parameters
TArray 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 TArray GetUninitializedObject()
Returns
TArray

A null value.

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

The value to serialize.

Sirenix.Serialization.IDataWriter writer

The writer to serialize with.