aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/ExtendableMessageLite.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProtocolBuffers/ExtendableMessageLite.cs')
-rw-r--r--src/ProtocolBuffers/ExtendableMessageLite.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ProtocolBuffers/ExtendableMessageLite.cs b/src/ProtocolBuffers/ExtendableMessageLite.cs
index 3417f152..6ff56566 100644
--- a/src/ProtocolBuffers/ExtendableMessageLite.cs
+++ b/src/ProtocolBuffers/ExtendableMessageLite.cs
@@ -37,6 +37,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
+using System.IO;
using Google.ProtocolBuffers.Collections;
namespace Google.ProtocolBuffers
@@ -74,7 +75,7 @@ namespace Google.ProtocolBuffers
/// <summary>
/// writes the extensions to the text stream
/// </summary>
- public override void PrintTo(System.IO.TextWriter writer)
+ public override void PrintTo(TextWriter writer)
{
foreach (KeyValuePair<IFieldDescriptorLite, object> entry in extensions.AllFields)
{
@@ -82,7 +83,9 @@ namespace Google.ProtocolBuffers
if (entry.Key.IsRepeated)
{
foreach (object o in ((IEnumerable) entry.Value))
+ {
PrintField(fn, true, o, writer);
+ }
}
else
{