diff options
author | csharptest <roger@csharptest.net> | 2011-09-09 21:05:29 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-09-09 21:05:29 -0500 |
commit | 1a0764ab27ae7189ae4b2b8a1d9f7a0599568282 (patch) | |
tree | 413ef5d6826ce9ba6568a1696a9ada8aaad1f17f /src/ProtocolBuffers/GeneratedBuilderLite.cs | |
parent | 8f0dcf3df1548a1eff0bed54a9b992f55b8f72d5 (diff) | |
download | protobuf-1a0764ab27ae7189ae4b2b8a1d9f7a0599568282.tar.gz protobuf-1a0764ab27ae7189ae4b2b8a1d9f7a0599568282.tar.bz2 protobuf-1a0764ab27ae7189ae4b2b8a1d9f7a0599568282.zip |
First pass at implementation and testing of reusable builders.
Diffstat (limited to 'src/ProtocolBuffers/GeneratedBuilderLite.cs')
-rw-r--r-- | src/ProtocolBuffers/GeneratedBuilderLite.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ProtocolBuffers/GeneratedBuilderLite.cs b/src/ProtocolBuffers/GeneratedBuilderLite.cs index cd2b8395..165edc10 100644 --- a/src/ProtocolBuffers/GeneratedBuilderLite.cs +++ b/src/ProtocolBuffers/GeneratedBuilderLite.cs @@ -61,11 +61,6 @@ namespace Google.ProtocolBuffers public abstract TBuilder MergeFrom(TMessage other);
- public override bool IsInitialized
- {
- get { return MessageBeingBuilt.IsInitialized; }
- }
-
/// <summary>
/// Adds all of the specified values to the given collection.
/// </summary>
@@ -122,7 +117,7 @@ namespace Google.ProtocolBuffers public override TMessage Build()
{
// If the message is null, we'll throw a more appropriate exception in BuildPartial.
- if (MessageBeingBuilt != null && !IsInitialized)
+ if (!IsInitialized)
{
throw new UninitializedMessageException(MessageBeingBuilt);
}
|