C# codegen: use fully qualified name in __Marshaller_* fields

pull/15688/head
Jan Tattermusch 7 years ago
parent 8b5e45a35b
commit c70c2b4ede
  1. 3
      src/compiler/csharp_generator.cc

@ -202,7 +202,8 @@ std::string GetCSharpMethodType(MethodType method_type) {
std::string GetServiceNameFieldName() { return "__ServiceName"; }
std::string GetMarshallerFieldName(const Descriptor* message) {
return "__Marshaller_" + message->name();
return "__Marshaller_" +
grpc_generator::StringReplace(message->full_name(), ".", "_", true);
}
std::string GetMethodFieldName(const MethodDescriptor* method) {

Loading…
Cancel
Save