Version 3.3.1.2

HashSetFormatter<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class HashSetFormatter<T> : BaseFormatter<HashSet<T>>, IFormatter<HashSet<T>>, IFormatter
Custom generic formatter for the generic type definition System.Collections.Generic.HashSet<>.
Inheritance
  • System.Object
  • BaseFormatter<System.Collections.Generic.HashSet<T>>
  • HashSetFormatter<T>

Type Parameters

T

The element type of the formatted list.

Constructors

HashSetFormatter()
public HashSetFormatter()

Methods

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

A null value.

SerializeImplementation(ref HashSet<T>, IDataWriter)
Provides the actual implementation for serializing a value of type .
protected override void SerializeImplementation(ref HashSet<T> value, IDataWriter writer)
Parameters
System.Collections.Generic.HashSet<T> value

The value to serialize.

Sirenix.Serialization.IDataWriter writer

The writer to serialize with.