I am not able to build with visual studio as FlatBuffers.Test
Thank you for submitting an issue!
i want to test it according to documentation of csharp. https://google.github.io/flatbuffers/flatbuffers_guide_use_java_c-sharp.html
it gives so much errors when try to build flatbuffers.test. it gives error of referable.cs does not find 2. gives error in Monster.cs
public static Monster? __lookup_by_key(Monster obj, int vectorLocation, string key, ByteBuffer bb) { byte[] byteKey = System.Text.Encoding.UTF8.GetBytes(key); int span = bb.GetInt(vectorLocation - 4); int start = 0; while (span != 0) { int middle = span / 2; int tableOffset = Table.__indirect(vectorLocation + 4 * (start + middle), bb); int comp = Table.CompareStrings(Table.__offset(10, bb.Length - tableOffset, bb), byteKey, bb); if (comp > 0) { span = middle; } else if (comp < 0) { middle++; start += middle; span -= middle; } else { return (obj == null ? new Monster(), obj).__assign(tableOffset, bb); } } return null; } };
This was fixed here, please try again: https://github.com/google/flatbuffers/commit/4bc6de9a881ea2f31f8f5ee302f78e1b101fa68f