AcTools.Utils.Helpers.JsonDeserializationExtension.MatchNext C# (CSharp) Method

MatchNext() public static method

public static MatchNext ( this reader, JsonToken token ) : void
reader this
token JsonToken
return void
        public static void MatchNext(this JsonTextReader reader, JsonToken token) {
            if (!reader.Read() || reader.TokenType != token) {
                throw new Exception(token + " expected");
            }
        }