Version 3.3.1.2

BooleanSerializer class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class BooleanSerializer : Serializer<bool>
Serializer for the System.Boolean type.
Inheritance

Constructors

BooleanSerializer()
public BooleanSerializer()

Methods

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

The reader to use.

Returns
System.Boolean

The value which has been read.

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

The name of the value to write.

System.Boolean value

The value to write.

Sirenix.Serialization.IDataWriter writer

The writer to use.