mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-06 05:27:24 +00:00
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:
committed by
Wouter van Oortmerssen
parent
a5cc2092a6
commit
ccfa317486
@@ -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
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace MyGame.Example
|
||||
{
|
||||
|
||||
using System;
|
||||
using FlatBuffers;
|
||||
using global::System;
|
||||
using global::FlatBuffers;
|
||||
|
||||
public struct Stat : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace MyGame.Example
|
||||
{
|
||||
|
||||
using System;
|
||||
using FlatBuffers;
|
||||
using global::System;
|
||||
using global::FlatBuffers;
|
||||
|
||||
public struct Test : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace MyGame.Example
|
||||
{
|
||||
|
||||
using System;
|
||||
using FlatBuffers;
|
||||
using global::System;
|
||||
using global::FlatBuffers;
|
||||
|
||||
public partial struct TestSimpleTableWithEnum : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
namespace MyGame.Example
|
||||
{
|
||||
|
||||
using System;
|
||||
using FlatBuffers;
|
||||
using global::System;
|
||||
using global::FlatBuffers;
|
||||
|
||||
public struct Vec3 : IFlatbufferObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user