diff --git a/src/compiler/csharp_generator.cc b/src/compiler/csharp_generator.cc index 97098714590..682ce59efbf 100644 --- a/src/compiler/csharp_generator.cc +++ b/src/compiler/csharp_generator.cc @@ -384,7 +384,7 @@ void GenerateServerClass(Printer* out, const ServiceDescriptor* service) { "servicename", GetServiceClassName(service)); out->Print( "[grpc::BindService(typeof($classname$), " - "nameof($classname$.BindService))]\n", + "\"BindService\")]\n", "classname", GetServiceClassName(service)); out->Print("public abstract partial class $name$\n", "name", GetServerClassName(service));