private void Next() { token = reader.Read(); while (token != null && token.Type == LexemType.Comment) { token = reader.Read(); } }
private void ReadFrom(PListReader reader) { PListObject parent = this; do { switch (reader.TokenType) { case (PListToken.None): break; case (PListToken.StartDict): { PListDict dict = new PListDict(); dict.Parent = parent; parent = dict; break; } case (PListToken.EndDict): { if (parent == this) { return; } parent = parent.Parent; break; } } } while (reader.Read()); }