mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 08:18:28 +00:00
[C#] Prepares for official Nuget release (#7496)
* Define nuget package * C# Switch to Google.FlatBuffers namespace * Add Source Link for nuget package * Add Strong Name signing of Google.FlatBuffers
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::FlatBuffers;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct Attacker : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::FlatBuffers;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct BookReader : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ public class CharacterUnion {
|
||||
public string AsUnused() { return this.As<string>(); }
|
||||
public static CharacterUnion FromUnused(string _unused) { return new CharacterUnion{ Type = Character.Unused, Value = _unused }; }
|
||||
|
||||
public static int Pack(FlatBuffers.FlatBufferBuilder builder, CharacterUnion _o) {
|
||||
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, CharacterUnion _o) {
|
||||
switch (_o.Type) {
|
||||
default: return 0;
|
||||
case Character.MuLan: return Attacker.Pack(builder, _o.AsMuLan()).Value;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::FlatBuffers;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct FallingTub : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ public class GadgetUnion {
|
||||
public HandFanT AsHandFan() { return this.As<HandFanT>(); }
|
||||
public static GadgetUnion FromHandFan(HandFanT _handfan) { return new GadgetUnion{ Type = Gadget.HandFan, Value = _handfan }; }
|
||||
|
||||
public static int Pack(FlatBuffers.FlatBufferBuilder builder, GadgetUnion _o) {
|
||||
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, GadgetUnion _o) {
|
||||
switch (_o.Type) {
|
||||
default: return 0;
|
||||
case Gadget.FallingTub: return FallingTub.Pack(builder, _o.AsFallingTub()).Value;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::FlatBuffers;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct HandFan : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::FlatBuffers;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct Movie : IFlatbufferObject
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using global::System;
|
||||
using global::System.Collections.Generic;
|
||||
using global::FlatBuffers;
|
||||
using global::Google.FlatBuffers;
|
||||
|
||||
public struct Rapunzel : IFlatbufferObject
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user