diff options
author | csharptest <roger@csharptest.net> | 2011-09-29 19:30:51 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-09-29 19:30:51 -0500 |
commit | f67c83365f4fe7850eb25b6af38833de61c79057 (patch) | |
tree | 7f0cf0575fd57063f371c7b1987437ddeb992b49 /src/ProtocolBuffers.Serialization/XmlFormatReader.cs | |
parent | fa8fa92499e4bb5f74ecaa08535f177c56d8fd52 (diff) | |
download | protobuf-f67c83365f4fe7850eb25b6af38833de61c79057.tar.gz protobuf-f67c83365f4fe7850eb25b6af38833de61c79057.tar.bz2 protobuf-f67c83365f4fe7850eb25b6af38833de61c79057.zip |
Added comments for private fields
Renamed StartMessage(name) to WriteMessageStart(name) on XmlFormatWriter as this
was intended to be an overload that did not get renamed.
Diffstat (limited to 'src/ProtocolBuffers.Serialization/XmlFormatReader.cs')
-rw-r--r-- | src/ProtocolBuffers.Serialization/XmlFormatReader.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ProtocolBuffers.Serialization/XmlFormatReader.cs b/src/ProtocolBuffers.Serialization/XmlFormatReader.cs index 20027177..4bf6423c 100644 --- a/src/ProtocolBuffers.Serialization/XmlFormatReader.cs +++ b/src/ProtocolBuffers.Serialization/XmlFormatReader.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic;
using System.IO;
using System.Xml;
+using System.Diagnostics;
namespace Google.ProtocolBuffers.Serialization
{
@@ -14,7 +15,9 @@ namespace Google.ProtocolBuffers.Serialization {
public const string DefaultRootElementName = XmlFormatWriter.DefaultRootElementName;
private readonly XmlReader _input;
+ // Tracks the message element for each nested message read
private readonly Stack<ElementStackEntry> _elements;
+ // The default element name for ReadMessageStart
private string _rootElementName;
private struct ElementStackEntry
@@ -118,6 +121,7 @@ namespace Google.ProtocolBuffers.Serialization }
}
+ [DebuggerNonUserCode]
private static void Assert(bool cond)
{
if (!cond)
|