| File: System\Text\Json\Reader\ConsumeTokenResult.cs | Web Access |
| Project: src\runtime\src\libraries\System.Text.Json\src\System.Text.Json.csproj (System.Text.Json) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Text.Json { /// <summary> /// This enum captures the tri-state return value when trying to read the /// next JSON token. /// </summary> internal enum ConsumeTokenResult : byte { /// <summary> /// Reached a valid end of token and hence no action is required. /// </summary> Success, /// <summary> /// Observed incomplete data but progressed state partially in looking ahead. /// Return false and roll-back to a previously saved state. /// </summary> NotEnoughDataRollBackState, /// <summary> /// Observed incomplete data but no change was made to the state. /// Return false, but do not roll-back anything since nothing changed. /// </summary> IncompleteNoRollBackNecessary, } }