Changes from code review
diff --git a/src/ProtocolBuffers.Serialization/JsonFormatWriter.cs b/src/ProtocolBuffers.Serialization/JsonFormatWriter.cs
index 15e08e0..035870d 100644
--- a/src/ProtocolBuffers.Serialization/JsonFormatWriter.cs
+++ b/src/ProtocolBuffers.Serialization/JsonFormatWriter.cs
@@ -239,27 +239,11 @@
/// <summary> Gets or sets the whitespace to use to separate the text, default = empty </summary>
public string Whitespace { get; set; }
- /// <summary>
- /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- /// </summary>
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- while (_counter.Count > 1)
- {
- WriteMessageEnd();
- }
- }
-
- base.Dispose(disposing);
- }
-
private void Seperator()
{
if (_counter.Count == 0)
{
- throw new InvalidOperationException("Missmatched open/close in Json writer.");
+ throw new InvalidOperationException("Mismatched open/close in Json writer.");
}
int index = _counter.Count - 1;