aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf
diff options
context:
space:
mode:
authorGravatar Jon Skeet <skeet@pobox.com>2015-08-14 22:12:02 +0100
committerGravatar Jon Skeet <skeet@pobox.com>2015-08-14 22:12:02 +0100
commit0cb84ee31fc2ac6e6f07c76a5dc20a20272d7516 (patch)
treed68ee926129717708960135431c42d8a6f76d9a7 /src/google/protobuf
parent5c370cc55f4c9b3ec8b35af1ee0e7bd9ed08befc (diff)
parentfa2fe35decc21ff375793138034d775d4ba30305 (diff)
Merge pull request #720 from jtattermusch/csharp_fixes
C# fix for TypeInitializer exception.
Diffstat (limited to 'src/google/protobuf')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_field_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_field_base.cc b/src/google/protobuf/compiler/csharp/csharp_field_base.cc
index cd29bcf9..5df43d3f 100644
--- a/src/google/protobuf/compiler/csharp/csharp_field_base.cc
+++ b/src/google/protobuf/compiler/csharp/csharp_field_base.cc
@@ -67,7 +67,7 @@ void FieldGeneratorBase::SetCommonFieldVariables(
tag_bytes += ", " + SimpleItoa(tag_array[i]);
}
- (*variables)["access_level"] = class_access_level();
+ (*variables)["access_level"] = "public";
(*variables)["tag"] = SimpleItoa(tag);
(*variables)["tag_size"] = SimpleItoa(tag_size);
(*variables)["tag_bytes"] = tag_bytes;