//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; using System.Text.Json; namespace cfg.test { public partial class TbCompositeJsonTable3 { private readonly test.CompositeJsonTable3 _data; public TbCompositeJsonTable3(JsonElement _buf) { int n = _buf.GetArrayLength(); if (n != 1) throw new SerializationException("table mode=one, but size != 1"); _data = test.CompositeJsonTable3.DeserializeCompositeJsonTable3(_buf[0]); } public int A => _data.A; public int B => _data.B; public void ResolveRef(Tables tables) { _data.ResolveRef(tables); } } }