diff options
author | Jie Luo <anandolee@gmail.com> | 2015-05-01 10:35:19 -0700 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2015-05-01 10:35:19 -0700 |
commit | ea48104cddf9dba8a7e525eebbccfe98fd1e1eff (patch) | |
tree | 01e4df4def2986b5c029a67bd83da3eb3263e439 /csharp/src/ProtocolBuffers/FieldAccess | |
parent | 41c175e7115fca70bcfdcd8b333bd07b58fd874f (diff) | |
download | protobuf-ea48104cddf9dba8a7e525eebbccfe98fd1e1eff.tar.gz protobuf-ea48104cddf9dba8a7e525eebbccfe98fd1e1eff.tar.bz2 protobuf-ea48104cddf9dba8a7e525eebbccfe98fd1e1eff.zip |
fix comments
Diffstat (limited to 'csharp/src/ProtocolBuffers/FieldAccess')
-rw-r--r-- | csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs | 2 | ||||
-rw-r--r-- | csharp/src/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs b/csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs index d5c6c9cf..6e20b14e 100644 --- a/csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs +++ b/csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs @@ -68,7 +68,7 @@ namespace Google.ProtocolBuffers.FieldAccess {
this.descriptor = descriptor;
accessors = new IFieldAccessor<TMessage, TBuilder>[descriptor.Fields.Count];
- bool supportFieldPresence = descriptor.File.Syntax == FileDescriptor.ProtoSyntax.PROTO2;
+ bool supportFieldPresence = descriptor.File.Syntax == FileDescriptor.ProtoSyntax.Proto2;
for (int i = 0; i < accessors.Length; i++)
{
accessors[i] = CreateAccessor(descriptor.Fields[i], propertyNames[i], supportFieldPresence);
diff --git a/csharp/src/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs b/csharp/src/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs index df9dedaf..b9ab7293 100644 --- a/csharp/src/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs +++ b/csharp/src/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs @@ -43,7 +43,6 @@ namespace Google.ProtocolBuffers.FieldAccess where TBuilder : IBuilder<TMessage, TBuilder>
{
private readonly Type clrType;
- private readonly FieldDescriptor field;
private readonly Func<TMessage, object> getValueDelegate;
private readonly Action<TBuilder, object> setValueDelegate;
private readonly Func<TMessage, bool> hasDelegate;
|