Browse Source

Ricciolo.StylesExplorer.MarkupReflection FIX: properly set _eof when reaching end of file

pull/182/merge
Siegfried Pammer 14 years ago
parent
commit
1bd14655d0
  1. 6
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs

6
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs

@ -264,7 +264,11 @@ namespace Ricciolo.StylesExplorer.MarkupReflection @@ -264,7 +264,11 @@ namespace Ricciolo.StylesExplorer.MarkupReflection
//while (currentType != BamlRecordType.DocumentEnd);
while (nodes.Count == 0 || (currentType != BamlRecordType.ElementEnd) || complexPropertyOpened > 0);
return SetNextNode();
if (!SetNextNode()) {
_eof = true;
return false;
}
return true;
}
catch (EndOfStreamException)
{

Loading…
Cancel
Save