• Mormegil's avatar
    [Issue 252] Add type cast for default enum values in C# · 25c99273
    Mormegil authored
    When creating a “CreateXxx(...)” method for a “simple table” type,
    enum-type fields with a non-zero default must have an explicit
    cast for the respective argument default value, because in C#,
    there is an implicit cast from int to an enum only for 0.
    
    Also, added an example of such type into the example monster_test
    type, so that we test this feature.
    25c99273
Name
Last commit
Last update
..
FlatBuffers.Test Loading commit data...
MyGame Loading commit data...
prototest Loading commit data...
GoTest.sh Loading commit data...
JavaTest.bat Loading commit data...
JavaTest.java Loading commit data...
JavaTest.sh Loading commit data...
PythonTest.sh Loading commit data...
generate_code.sh Loading commit data...
go_test.go Loading commit data...
include_test1.fbs Loading commit data...
include_test2.fbs Loading commit data...
monster_test.bfbs Loading commit data...
monster_test.fbs Loading commit data...
monster_test_generated.h Loading commit data...
monsterdata_python_wire.mon Loading commit data...
monsterdata_test.golden Loading commit data...
monsterdata_test.json Loading commit data...
monsterdata_test.mon Loading commit data...
py_test.py Loading commit data...
test.cpp Loading commit data...