Пример #1
0
        public void Reset()
        {
            AddMethodDelegate = null;
            JsonClassInfo     = null !;
            ObjectState       = StackFrameObjectState.None;
            OriginalDepth     = 0;
            OriginalTokenType = JsonTokenType.None;
            PropertyIndex     = 0;
            PropertyRefCache  = null;
            ReturnValue       = null;

            EndProperty();
        }
Пример #2
0
        public void Reset()
        {
            CtorArgumentStateIndex = 0;
            CtorArgumentState      = null;
            JsonTypeInfo           = null !;
            ObjectState            = StackFrameObjectState.None;
            OriginalDepth          = 0;
            OriginalTokenType      = JsonTokenType.None;
            PropertyIndex          = 0;
            PropertyRefCache       = null;
            ReturnValue            = null;

            EndProperty();
        }
 public void Reset()
 {
     CtorArgumentStateIndex       = 0;
     CtorArgumentState            = null;
     BinaryClassInfo              = null !;
     PolymorphicBinaryClassInfo   = null;
     PolymorphicBinaryTypeInfo    = null;
     BinaryTypeInfo               = null;
     PropertyPolymorphicConverter = null;
     ObjectState          = StackFrameObjectState.None;
     OriginalDepth        = 0;
     PropertyIndex        = 0;
     PropertyRefCache     = null;
     ReturnValue          = null;
     EnumerableIndexBytes = 0;
     EnumerableLength     = 0;
     EnumerableIndex      = 0;
     PropertyValueCache   = null;
     RefState             = RefState.None;
     EndProperty();
 }
Пример #4
0
 private static bool ReadAheadMetataDataAndSetState(ref Utf8JsonReader reader, ref ReadStack state, StackFrameObjectState nextState)
 {
     state.Current.ObjectState = nextState;
     return(reader.Read());
 }
Пример #5
0
 private static bool TryReadAheadMetadataAndSetState(ref Utf8JsonReader reader, ref ReadStack state, StackFrameObjectState nextState)
 {
     // If we can't read here, the read will be completed at the root API by asking the stream for more data.
     // Set the state so we know where to resume on re-entry.
     state.Current.ObjectState = nextState;
     return(reader.Read());
 }