You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to deserialize file that contains some comments starts with "\" and I got some weird results. When I enumerate VToken through foreach, it sends me VValue struct with comment itself. Please fix.
VPropertysubtitles= VdfConvert.Deserialize(reader:new StreamReader(subtitlesTextStream, leaveOpen:true));VTokensubtitlesTokens= subtitles.Value["Tokens"]??thrownew InvalidDataException("Cannot find 'Tokens' property.");foreach(VToken token in subtitlesTokens){// subtitlesTokens could send me VValue comment. why??if(token is VProperty property){stringkey= property.Key;stringvalue= property.Value.ToString();
tokens.Add(newKeyValuePair<string,string>(key, value));}}
The text was updated successfully, but these errors were encountered:
I've tried to deserialize file that contains some comments starts with "\" and I got some weird results. When I enumerate VToken through foreach, it sends me VValue struct with comment itself. Please fix.
The text was updated successfully, but these errors were encountered: