aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/csharp_generator.cc
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2016-11-03 10:15:19 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2016-11-03 10:15:19 -0700
commit660e4b082c4d53bd5fddce2447986de130155e15 (patch)
tree73d2a9e699ede5deb84f5522effe148ff222a1fd /src/compiler/csharp_generator.cc
parentc6d2329e4cf4f6f054d89326b707edea7b0725b5 (diff)
generate partial c# client stubs as partial classes
Diffstat (limited to 'src/compiler/csharp_generator.cc')
-rw-r--r--src/compiler/csharp_generator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/csharp_generator.cc b/src/compiler/csharp_generator.cc
index f5a0876cf9..3d4a8cb9c2 100644
--- a/src/compiler/csharp_generator.cc
+++ b/src/compiler/csharp_generator.cc
@@ -327,7 +327,7 @@ void GenerateClientStub(Printer* out, const ServiceDescriptor *service) {
out->Print("/// <summary>Client for $servicename$</summary>\n",
"servicename", GetServiceClassName(service));
out->Print(
- "public class $name$ : ClientBase<$name$>\n",
+ "public partial class $name$ : ClientBase<$name$>\n",
"name", GetClientClassName(service));
out->Print("{\n");
out->Indent();
@@ -495,7 +495,7 @@ void GenerateService(Printer* out, const ServiceDescriptor *service,
bool generate_client, bool generate_server,
bool internal_access) {
GenerateDocCommentBody(out, service);
- out->Print("$access_level$ static class $classname$\n", "access_level",
+ out->Print("$access_level$ static partial class $classname$\n", "access_level",
GetAccessLevel(internal_access), "classname",
GetServiceClassName(service));
out->Print("{\n");