Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public class SerializationNodeDataWriter : BaseDataWriter, IDataWriter, IDisposable
public SerializationNodeDataWriter(SerializationContext context)
SerializationContext | context |
public List<SerializationNode> Nodes { get; set; }
public override Stream Stream { get; set; }
public override void BeginArrayNode(long length)
System.Int64 | length | The length of the array to come. |
System.NotImplementedException |
public override void BeginReferenceNode(string name, Type type, int id)
System.String | name | |
System.Type | type | |
System.Int32 | id |
public override void BeginStructNode(string name, Type type)
System.String | name | |
System.Type | type |
public override void Dispose()
public override void EndArrayNode()
public override void EndNode(string name)
System.String | name |
public override void FlushToStream()
public override string GetDataDump()
System.String |
public override void PrepareNewSerializationSession()
public override void WriteBoolean(string name, bool value)
System.String | name | |
System.Boolean | value |
public override void WriteByte(string name, byte value)
System.String | name | |
System.Byte | value |
public override void WriteChar(string name, char value)
System.String | name | |
System.Char | value |
public override void WriteDecimal(string name, decimal value)
System.String | name | |
System.Decimal | value |
public override void WriteDouble(string name, double value)
System.String | name | |
System.Double | value |
public override void WriteExternalReference(string name, Guid guid)
System.String | name | |
System.Guid | guid |
public override void WriteExternalReference(string name, int index)
System.String | name | |
System.Int32 | index |
public override void WriteExternalReference(string name, string id)
System.String | name | |
System.String | id |
public override void WriteGuid(string name, Guid value)
System.String | name | |
System.Guid | value |
public override void WriteInt16(string name, short value)
System.String | name | |
System.Int16 | value |
public override void WriteInt32(string name, int value)
System.String | name | |
System.Int32 | value |
public override void WriteInt64(string name, long value)
System.String | name | |
System.Int64 | value |
public override void WriteInternalReference(string name, int id)
System.String | name | |
System.Int32 | id |
public override void WriteNull(string name)
System.String | name |
public override void WritePrimitiveArray<T>(T[] array)
where T : struct
T[] | array |
T |
public override void WriteSByte(string name, sbyte value)
System.String | name | |
System.SByte | value |
public override void WriteSingle(string name, float value)
System.String | name | |
System.Single | value |
public override void WriteString(string name, string value)
System.String | name | |
System.String | value |
public override void WriteUInt16(string name, ushort value)
System.String | name | |
System.UInt16 | value |
public override void WriteUInt32(string name, uint value)
System.String | name | |
System.UInt32 | value |
public override void WriteUInt64(string name, ulong value)
System.String | name | |
System.UInt64 | value |