diff options
author | csharptest <roger@csharptest.net> | 2011-08-05 20:40:14 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-08-05 20:40:14 -0500 |
commit | 0f3540e24b7b5cf66b59b97cb824fd5449fb77b4 (patch) | |
tree | f07ad11ac6c814df0f6b8091eae023cf5f5d5cc1 /src/ProtocolBuffers/AbstractMessage.cs | |
parent | 304ff3a83823fdfce6e2eac40cc44e2b4b1fd3c3 (diff) | |
download | protobuf-0f3540e24b7b5cf66b59b97cb824fd5449fb77b4.tar.gz protobuf-0f3540e24b7b5cf66b59b97cb824fd5449fb77b4.tar.bz2 protobuf-0f3540e24b7b5cf66b59b97cb824fd5449fb77b4.zip |
Split off the Serialization namespace into a new assembly.
Diffstat (limited to 'src/ProtocolBuffers/AbstractMessage.cs')
-rw-r--r-- | src/ProtocolBuffers/AbstractMessage.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/ProtocolBuffers/AbstractMessage.cs b/src/ProtocolBuffers/AbstractMessage.cs index 0c898c70..13443b1c 100644 --- a/src/ProtocolBuffers/AbstractMessage.cs +++ b/src/ProtocolBuffers/AbstractMessage.cs @@ -40,7 +40,6 @@ using System.IO; using System.Text;
using Google.ProtocolBuffers.Collections;
using Google.ProtocolBuffers.Descriptors;
-using Google.ProtocolBuffers.Serialization;
namespace Google.ProtocolBuffers
{
@@ -123,27 +122,6 @@ namespace Google.ProtocolBuffers return TextFormat.PrintToString(this);
}
- public string ToJson()
- {
- JsonFormatWriter w = JsonFormatWriter.CreateInstance();
- w.WriteMessage(this);
- return w.ToString();
- }
-
- public string ToXml()
- {
- StringWriter w = new StringWriter(new StringBuilder(4096));
- XmlFormatWriter.CreateInstance(w).WriteMessage(this);
- return w.ToString();
- }
-
- public string ToXml(string rootElementName)
- {
- StringWriter w = new StringWriter(new StringBuilder(4096));
- XmlFormatWriter.CreateInstance(w).WriteMessage(rootElementName, this);
- return w.ToString();
- }
-
public override sealed void PrintTo(TextWriter writer)
{
TextFormat.Print(this, writer);
|