generate partial c# client stubs as partial classes

pull/8619/head
Alexander Polcyn 8 years ago
parent c6d2329e4c
commit 660e4b082c
  1. 4
      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");

Loading…
Cancel
Save