mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +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:
@@ -79,7 +79,7 @@ Additional options:
|
||||
- `--allow-non-utf8` : Pass non-UTF-8 input through parser and emit nonstandard
|
||||
\x escapes in JSON. (Default is to raise parse error on non-UTF-8 input.)
|
||||
|
||||
- `--natural-utf8` : Output strings with UTF-8 as human-readable strings.
|
||||
- `--natural-utf8` : Output strings with UTF-8 as human-readable strings.
|
||||
By default, UTF-8 characters are printed as \uXXXX escapes."
|
||||
|
||||
- `--defaults-json` : Output fields whose value is equal to the default value
|
||||
@@ -216,7 +216,9 @@ Additional options:
|
||||
- `--flexbuffers` : Used with "binary" and "json" options, it generates
|
||||
data using schema-less FlexBuffers.
|
||||
|
||||
- `--no-warnings` : Inhibit all warning messages.
|
||||
- `--no-warnings` : Inhibit all warning messages.
|
||||
|
||||
- `--cs-global-alias` : Prepend `global::` to all user generated csharp classes and structs.
|
||||
|
||||
NOTE: short-form options for generators are deprecated, use the long form
|
||||
whenever possible.
|
||||
|
||||
Reference in New Issue
Block a user