Fixing bug where array/dictionary deserialization was never terminating

This commit is contained in:
Chris Cameron
2018-02-17 12:44:10 -05:00
parent b62b5661e5
commit 41d0a43eff
2 changed files with 99 additions and 1 deletions

View File

@@ -181,6 +181,9 @@ namespace ICD.Common.Utils.Extensions
{
TItem output = extends.Deserialize<TItem>(reader);
yield return output;
// Read out of the last value
reader.Read();
}
}
@@ -249,6 +252,9 @@ namespace ICD.Common.Utils.Extensions
TValue value = extends.Deserialize<TValue>(reader);
yield return new KeyValuePair<TKey, TValue>(key, value);
// Read out of the last value
reader.Read();
}
}
}