mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 03:35:04 +00:00
Fixing bug where array/dictionary deserialization was never terminating
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user