Version 3.3.1.2

SingleSerializer class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class SingleSerializer : Serializer<float>
Serializer for the System.Single type.
Inheritance

Constructors

SingleSerializer()
public SingleSerializer()

Methods

ReadValue(IDataReader)
Reads a value of type System.Single.
public override float ReadValue(IDataReader reader)
Parameters
Sirenix.Serialization.IDataReader reader

The reader to use.

Returns
System.Single

The value which has been read.

WriteValue(String, Single, IDataWriter)
Writes a value of type System.Single.
public override void WriteValue(string name, float value, IDataWriter writer)
Parameters
System.String name

The name of the value to write.

System.Single value

The value to write.

Sirenix.Serialization.IDataWriter writer

The writer to use.