//------------------------------------------------------------------------------
//
// 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 Bright.Serialization;
using System.Collections.Generic;
namespace Cfg.Config
{
public sealed partial class TestData : Bright.Config.BeanBase
{
public TestData(ByteBuf _buf)
{
Id = _buf.ReadInt();
Tab1 = _buf.ReadString();
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);Tab2 = new System.Collections.Generic.List(n);for(var i = 0 ; i < n ; i++) { int _e; _e = _buf.ReadInt(); Tab2.Add(_e);}}
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);Tab3 = new System.Collections.Generic.List(n);for(var i = 0 ; i < n ; i++) { string _e; _e = _buf.ReadString(); Tab3.Add(_e);}}
Tab6 = SplitNum.DeserializeSplitNum(_buf);
{int n = System.Math.Min(_buf.ReadSize(), _buf.Size);Tab7 = new System.Collections.Generic.List(n);for(var i = 0 ; i < n ; i++) { SplitNum _e; _e = SplitNum.DeserializeSplitNum(_buf); Tab7.Add(_e);}}
PostInit();
}
public static TestData DeserializeTestData(ByteBuf _buf)
{
return new Config.TestData(_buf);
}
///
/// 描述:int
///
public int Id { get; private set; }
///
/// 描述:string
///
public string Tab1 { get; private set; }
///
/// 描述:(list#sep=*),int
///
public System.Collections.Generic.List Tab2 { get; private set; }
///
/// 描述:(list#sep=*),string
///
public System.Collections.Generic.List Tab3 { get; private set; }
///
/// 描述:SplitNum
///
public SplitNum Tab6 { get; private set; }
///
/// 描述:(list#sep=|),SplitNum
///
public System.Collections.Generic.List Tab7 { get; private set; }
public const int __ID__ = -1077271416;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
Tab6?.Resolve(_tables);
foreach(var _e in Tab7) { _e?.Resolve(_tables); }
PostResolve();
}
public void TranslateText(System.Func translator)
{
Tab6?.TranslateText(translator);
foreach(var _e in Tab7) { _e?.TranslateText(translator); }
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "Tab1:" + Tab1 + ","
+ "Tab2:" + Bright.Common.StringUtil.CollectionToString(Tab2) + ","
+ "Tab3:" + Bright.Common.StringUtil.CollectionToString(Tab3) + ","
+ "Tab6:" + Tab6 + ","
+ "Tab7:" + Bright.Common.StringUtil.CollectionToString(Tab7) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}