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

@@ -3,8 +3,8 @@
namespace MyGame.Example
{
using System;
using FlatBuffers;
using global::System;
using global::FlatBuffers;
/// an example documentation comment: monster object
public struct Monster : IFlatbufferObject

View File

@@ -3,8 +3,8 @@
namespace MyGame.Example
{
using System;
using FlatBuffers;
using global::System;
using global::FlatBuffers;
public struct Stat : IFlatbufferObject
{

View File

@@ -3,8 +3,8 @@
namespace MyGame.Example
{
using System;
using FlatBuffers;
using global::System;
using global::FlatBuffers;
public struct Test : IFlatbufferObject
{

View File

@@ -3,8 +3,8 @@
namespace MyGame.Example
{
using System;
using FlatBuffers;
using global::System;
using global::FlatBuffers;
public partial struct TestSimpleTableWithEnum : IFlatbufferObject
{

View File

@@ -3,8 +3,8 @@
namespace MyGame.Example
{
using System;
using FlatBuffers;
using global::System;
using global::FlatBuffers;
public struct Vec3 : IFlatbufferObject
{