Mercurial > pub > ImplabNet
diff Implab/JSON/JSONParser.cs @ 62:62b440d46313
Added Skip method to JSON parser to skip contents of the current node
author | cin |
---|---|
date | Sun, 22 Jun 2014 04:14:02 +0400 |
parents | 21611344d366 |
children | 0349189d2564 |
line wrap: on
line diff
--- a/Implab/JSON/JSONParser.cs Thu Jun 19 20:04:20 2014 +0400 +++ b/Implab/JSON/JSONParser.cs Sun Jun 22 04:14:02 2014 +0400 @@ -250,6 +250,15 @@ ~JSONParser() { Dispose(false); } + + public void Skip() { + var level = Level-1; + + Debug.Assert(level >= 0); + + while (Level != level) + Read(); + } } }