C#: Fixed possible conflicts between usings and user-supplied namespace (#4247)

* C#: Fixed possible conflicts between usings and user-supplied namespace

C#: Added the global qualifier to using directives to prevent possible conflicts with the user-supplied namespace. Also prevents unintentional type hiding. Resolves issue #4242.

* Updated C# generated code files
This commit is contained in:
Spencer Bench
2017-03-29 12:09:25 -06:00
committed by Wouter van Oortmerssen
parent a5cc2092a6
commit ccfa317486
12 changed files with 23 additions and 23 deletions

View File

@@ -128,7 +128,7 @@ const LanguageParameters& GetLangParams(IDLOptions::Language lang) {
"__p.",
"Table.",
"?",
"using System;\nusing FlatBuffers;\n\n",
"using global::System;\nusing global::FlatBuffers;\n\n",
{
nullptr,
"///",