using System.Collections.Generic; namespace NBF { public partial class GoodsConfig { private List _awards; public List Awards { get { if (_awards == null) { _awards = new List(); foreach (var item in Items) { _awards.Add(new AwardData(item)); } } return _awards; } } } }