diff options
author | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-05-31 11:29:09 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-05-31 12:15:19 -0700 |
commit | c978b9ef1f74c4918a33ee26217c85e5a5949a5b (patch) | |
tree | 60ee38d64306c6df36fb1fb722c63e6f35925da7 /net/FlatBuffers/FlatBufferConstants.cs | |
parent | 3a88e1031be9ad97459c4de4f77319e19cbb648d (diff) | |
download | flatbuffers-c978b9ef1f74c4918a33ee26217c85e5a5949a5b.tar.gz flatbuffers-c978b9ef1f74c4918a33ee26217c85e5a5949a5b.tar.bz2 flatbuffers-c978b9ef1f74c4918a33ee26217c85e5a5949a5b.zip |
Enforce matching version in Java and C#.
Change-Id: I7f1f12f2f97e5227e0dabc2965ce66a6d41c229c
Diffstat (limited to 'net/FlatBuffers/FlatBufferConstants.cs')
-rw-r--r-- | net/FlatBuffers/FlatBufferConstants.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/FlatBuffers/FlatBufferConstants.cs b/net/FlatBuffers/FlatBufferConstants.cs index e30f3f39..730d7efd 100644 --- a/net/FlatBuffers/FlatBufferConstants.cs +++ b/net/FlatBuffers/FlatBufferConstants.cs @@ -25,5 +25,13 @@ namespace FlatBuffers { public const int FileIdentifierLength = 4; public const int SizePrefixLength = 4; + /** A version identifier to force a compile error if someone + accidentally tries to build generated code with a runtime of + two mismatched version. Versions need to always match, as + the runtime and generated code are modified in sync. + Changes to the C# implementation need to be sure to change + the version here and in the code generator on every possible + incompatible change */ + public static void FLATBUFFERS_1_11_1() {} } } |