public VProperty Deserialize(TextReader textReader) { using (VdfReader vdfReader = new VdfTextReader(textReader, _settings)) { vdfReader.ReadToken(); return ReadProperty(vdfReader); } }
public VProperty Deserialize(TextReader textReader) { using VdfReader vdfReader = new VdfTextReader(textReader, _settings); if (!vdfReader.ReadToken()) { throw new VdfException("Incomplete VDF data."); } // For now, we discard these comments. while (vdfReader.CurrentState == VdfReader.State.Comment) { if (!vdfReader.ReadToken()) { throw new VdfException("Incomplete VDF data."); } } return(ReadProperty(vdfReader)); }