mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
[C#] Using 'global::' as qualifying_start_ within BaseGenerator (#6767)
* Update idl_gen_csharp.cpp Change csharp generator to use "global::" for it's qualifying_start_ to disambiguate namespaces * regenerate testing files regenerate testing files * Missed TableInC.cs updated with global prefix * Remove "global::" from qualifying_start_ for csharp generator * C# global alias * Tests and docs for --cs-global-alias Add tests for --cs-global-alias to demonstrate use case for why it's needed. Add documentation to Compiler.md * Add also to help text Add also to help text
This commit is contained in:
@@ -594,6 +594,7 @@ struct IDLOptions {
|
||||
std::string filename_extension;
|
||||
bool no_warnings;
|
||||
std::string project_root;
|
||||
bool cs_global_alias;
|
||||
|
||||
// Possible options for the more general generator below.
|
||||
enum Language {
|
||||
@@ -679,6 +680,7 @@ struct IDLOptions {
|
||||
filename_extension(),
|
||||
no_warnings(false),
|
||||
project_root(""),
|
||||
cs_global_alias(false),
|
||||
mini_reflect(IDLOptions::kNone),
|
||||
require_explicit_ids(false),
|
||||
lang_to_generate(0),
|
||||
|
||||
Reference in New Issue
Block a user