SetState() private method

private SetState ( ObjectWriterState state ) : void
state ObjectWriterState
return void
Ejemplo n.º 1
0
 public override void WritePrimitiveValue(ObjectWriter writer)
 {
     writer.SetState(ArrayValueState.State);
 }
Ejemplo n.º 2
0
            public override void WriteStartArray(ObjectWriter writer)
            {
                writer.WriteStartArrayToken();

                writer.SetState(ArrayValueState.State);
                writer.PushState(ArrayState.State);
            }
Ejemplo n.º 3
0
            public override void WriteStartObject(ObjectWriter writer)
            {
                writer.WriteStartObjectToken();

                writer.SetState(MemberValueState.State);
                writer.PushState(StartObjectState.State);
            }
Ejemplo n.º 4
0
            public override void WriteEndMember(ObjectWriter writer)
            {
                writer.WriteEndMemberToken();

                writer.SetState(EndMemberState.State);
            }
Ejemplo n.º 5
0
            public override void WriteStartMember(ObjectWriter writer, int memberKey)
            {
                writer.WriteStartMemberToken(memberKey);

                writer.SetState(StartMemberState.State);
            }