diff options
author | Jon Skeet <skeet@pobox.com> | 2009-02-24 16:50:56 +0000 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2009-02-24 16:50:56 +0000 |
commit | e81a9d7c87380028b72cd77d48e767705ee224b5 (patch) | |
tree | a4e0c00735509e67a8188dfc6934f418a49b3abf /src/ProtocolBuffers.Test/AbstractMessageTest.cs | |
parent | 25a28580a6f307cb8eb040367f5671e678e9896b (diff) | |
download | protobuf-e81a9d7c87380028b72cd77d48e767705ee224b5.tar.gz protobuf-e81a9d7c87380028b72cd77d48e767705ee224b5.tar.bz2 protobuf-e81a9d7c87380028b72cd77d48e767705ee224b5.zip |
Added ToBuilder and WeakToBuilder
Diffstat (limited to 'src/ProtocolBuffers.Test/AbstractMessageTest.cs')
-rw-r--r-- | src/ProtocolBuffers.Test/AbstractMessageTest.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ProtocolBuffers.Test/AbstractMessageTest.cs b/src/ProtocolBuffers.Test/AbstractMessageTest.cs index b77264f2..ca34ac8a 100644 --- a/src/ProtocolBuffers.Test/AbstractMessageTest.cs +++ b/src/ProtocolBuffers.Test/AbstractMessageTest.cs @@ -297,6 +297,10 @@ namespace Google.ProtocolBuffers { return new Builder(wrappedMessage.WeakCreateBuilderForType()); } + public override Builder ToBuilder() { + return new Builder(wrappedMessage.WeakToBuilder()); + } + internal class Builder : AbstractBuilder<AbstractMessageWrapper, Builder> { private readonly IBuilder wrappedBuilder; |