csharp_generator.h

#include <google/protobuf/compiler/csharp/csharp_generator.h>
namespace google::protobuf::compiler::csharp

Generates C# code for a given .proto file.

Classes in this file

CodeGenerator implementation which generates a C# source file and header.

class Generator: public CodeGenerator

#include <google/protobuf/compiler/csharp/csharp_generator.h>
namespace google::protobuf::compiler::csharp

CodeGenerator implementation which generates a C# source file and header.

If you create your own protocol compiler binary and you want it to support C# output, you can do so by registering an instance of this CodeGenerator with the CommandLineInterface in your main() function.

Members