Update missing C# namespace to Google.FlatBuffers
This commit is contained in:
parent
00af4e23b3
commit
3b2ced0131
|
@ -82,7 +82,7 @@ pass to the `GetRootAsMyRootType` function:
|
||||||
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cs}
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cs}
|
||||||
using MyGame.Example;
|
using MyGame.Example;
|
||||||
using FlatBuffers;
|
using Google.FlatBuffers;
|
||||||
|
|
||||||
// This snippet ignores exceptions for brevity.
|
// This snippet ignores exceptions for brevity.
|
||||||
byte[] data = File.ReadAllBytes("monsterdata_test.mon");
|
byte[] data = File.ReadAllBytes("monsterdata_test.mon");
|
||||||
|
|
|
@ -415,7 +415,7 @@ The first step is to import/include the library, generated files, etc.
|
||||||
</div>
|
</div>
|
||||||
<div class="language-csharp">
|
<div class="language-csharp">
|
||||||
~~~{.cs}
|
~~~{.cs}
|
||||||
using FlatBuffers;
|
using Google.FlatBuffers;
|
||||||
using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.)
|
using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.)
|
||||||
~~~
|
~~~
|
||||||
</div>
|
</div>
|
||||||
|
@ -2200,7 +2200,7 @@ before:
|
||||||
</div>
|
</div>
|
||||||
<div class="language-csharp">
|
<div class="language-csharp">
|
||||||
~~~{.cs}
|
~~~{.cs}
|
||||||
using FlatBuffers;
|
using Google.FlatBuffers;
|
||||||
using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.)
|
using MyGame.Sample; // The `flatc` generated files. (Monster, Vec3, etc.)
|
||||||
~~~
|
~~~
|
||||||
</div>
|
</div>
|
||||||
|
@ -3449,7 +3449,7 @@ Java supports vectors of unions, but it isn't currently documented.
|
||||||
</div>
|
</div>
|
||||||
<div class="language-csharp">
|
<div class="language-csharp">
|
||||||
~~~{.cs}
|
~~~{.cs}
|
||||||
using FlatBuffers;
|
using Google.FlatBuffers;
|
||||||
using Example.VectorOfUnions;
|
using Example.VectorOfUnions;
|
||||||
|
|
||||||
var fbb = new FlatBufferBuilder(100);
|
var fbb = new FlatBufferBuilder(100);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// To run, use the `csharp_sample.sh` script.
|
// To run, use the `csharp_sample.sh` script.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using FlatBuffers;
|
using Google.FlatBuffers;
|
||||||
using MyGame.Sample;
|
using MyGame.Sample;
|
||||||
|
|
||||||
class SampleBinary
|
class SampleBinary
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace NamespaceA
|
||||||
{
|
{
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using FlatBuffers;
|
using Google.FlatBuffers;
|
||||||
|
|
||||||
public sealed class TableInC : Table {
|
public sealed class TableInC : Table {
|
||||||
public static TableInC GetRootAsTableInC(ByteBuffer _bb) { return GetRootAsTableInC(_bb, new TableInC()); }
|
public static TableInC GetRootAsTableInC(ByteBuffer _bb) { return GetRootAsTableInC(_bb, new TableInC()); }
|
||||||
|
|
Loading…
Reference in New Issue