aboutsummaryrefslogtreecommitdiff
path: root/csharp/ProtocolBuffers/GeneratedMessage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/ProtocolBuffers/GeneratedMessage.cs')
-rw-r--r--csharp/ProtocolBuffers/GeneratedMessage.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/csharp/ProtocolBuffers/GeneratedMessage.cs b/csharp/ProtocolBuffers/GeneratedMessage.cs
index 515eadc0..d10531eb 100644
--- a/csharp/ProtocolBuffers/GeneratedMessage.cs
+++ b/csharp/ProtocolBuffers/GeneratedMessage.cs
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Text;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;
@@ -22,12 +21,20 @@ namespace Google.ProtocolBuffers {
get { return InternalFieldAccessors.Descriptor; }
}
+ protected override IMessage DefaultInstanceForTypeImpl {
+ get { return DefaultInstanceForType; }
+ }
+
+ protected override IBuilder CreateBuilderForTypeImpl() {
+ return CreateBuilderForType();
+ }
+
public IMessage<TMessage> DefaultInstanceForType {
- get { throw new System.NotImplementedException(); }
+ get { throw new NotImplementedException(); }
}
public IBuilder<TMessage> CreateBuilderForType() {
- throw new System.NotImplementedException();
+ throw new NotImplementedException();
}
private IDictionary<FieldDescriptor, Object> GetMutableFieldMap() {