public VipLvInfo() : base(AccessLevel.ReadOnly) { DailyRestrain = new CacheList<DailyRestrain>(0, true); _EquStreng =new EquStreng(); }
protected override object this[string index] { get { #region switch (index) { case "VipLv": return VipLv; case "PayGold": return PayGold; case "DailyRestrain": return DailyRestrain; case "ExpandFun": return ExpandFun; case "EquStreng": return EquStreng; default: throw new ArgumentException(string.Format("VipLvInfo index[{0}] isn't exist.", index)); } #endregion } set { #region switch (index) { case "VipLv": _VipLv = value.ToShort(); break; case "PayGold": _PayGold = value.ToInt(); break; case "DailyRestrain": _DailyRestrain = ConvertCustomField<CacheList<DailyRestrain>>(value, index); break; case "ExpandFun": _ExpandFun = value.ToNotNullString(); break; case "EquStreng": _EquStreng = ConvertCustomField<EquStreng>(value, index); break; default: throw new ArgumentException(string.Format("VipLvInfo index[{0}] isn't exist.", index)); } #endregion } }