dont use nameof

pull/18484/head
Jan Tattermusch 6 years ago
parent 31ce7a32bb
commit aa61b5361b
  1. 2
      src/compiler/csharp_generator.cc

@ -384,7 +384,7 @@ void GenerateServerClass(Printer* out, const ServiceDescriptor* service) {
"servicename", GetServiceClassName(service)); "servicename", GetServiceClassName(service));
out->Print( out->Print(
"[grpc::BindService(typeof($classname$), " "[grpc::BindService(typeof($classname$), "
"nameof($classname$.BindService))]\n", "\"BindService\")]\n",
"classname", GetServiceClassName(service)); "classname", GetServiceClassName(service));
out->Print("public abstract partial class $name$\n", "name", out->Print("public abstract partial class $name$\n", "name",
GetServerClassName(service)); GetServerClassName(service));

Loading…
Cancel
Save