diff options
author | csharptest <roger@csharptest.net> | 2011-09-09 22:16:08 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-09-09 22:16:08 -0500 |
commit | c86b504409f0b1b57764fd42376de28b13968a8f (patch) | |
tree | 1d32b2165e6c4665390d2ec5bbe972ba25e7cd02 /src/ProtocolBuffers.Serialization/XmlFormatWriter.cs | |
parent | f52ec95ad50b352ed82449f9cbef48f6edd50149 (diff) | |
download | protobuf-c86b504409f0b1b57764fd42376de28b13968a8f.tar.gz protobuf-c86b504409f0b1b57764fd42376de28b13968a8f.tar.bz2 protobuf-c86b504409f0b1b57764fd42376de28b13968a8f.zip |
Missing braces :)
Diffstat (limited to 'src/ProtocolBuffers.Serialization/XmlFormatWriter.cs')
-rw-r--r-- | src/ProtocolBuffers.Serialization/XmlFormatWriter.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ProtocolBuffers.Serialization/XmlFormatWriter.cs b/src/ProtocolBuffers.Serialization/XmlFormatWriter.cs index 79f403df..3c5cb3ab 100644 --- a/src/ProtocolBuffers.Serialization/XmlFormatWriter.cs +++ b/src/ProtocolBuffers.Serialization/XmlFormatWriter.cs @@ -78,8 +78,10 @@ namespace Google.ProtocolBuffers.Serialization {
if (disposing)
{
- while(_messageOpenCount > 0)
+ while (_messageOpenCount > 0)
+ {
WriteMessageEnd();
+ }
_output.Close();
}
@@ -163,7 +165,9 @@ namespace Google.ProtocolBuffers.Serialization public override void WriteMessageEnd()
{
if (_messageOpenCount <= 0)
+ {
throw new InvalidOperationException();
+ }
_output.WriteEndElement();
_output.Flush();
|