SetState() private méthode

private SetState ( ObjectWriterState state ) : void
state ObjectWriterState
Résultat void
 public override void WritePrimitiveValue(ObjectWriter writer)
 {
     writer.SetState(ArrayValueState.State);
 }
            public override void WriteStartArray(ObjectWriter writer)
            {
                writer.WriteStartArrayToken();

                writer.SetState(ArrayValueState.State);
                writer.PushState(ArrayState.State);
            }
            public override void WriteStartObject(ObjectWriter writer)
            {
                writer.WriteStartObjectToken();

                writer.SetState(MemberValueState.State);
                writer.PushState(StartObjectState.State);
            }
            public override void WriteEndMember(ObjectWriter writer)
            {
                writer.WriteEndMemberToken();

                writer.SetState(EndMemberState.State);
            }
            public override void WriteStartMember(ObjectWriter writer, int memberKey)
            {
                writer.WriteStartMemberToken(memberKey);

                writer.SetState(StartMemberState.State);
            }