public List<int> YearList { get; set; }

this.YearList = new List<int>();

foreach (var item in this.AccountBalanceList.Select(a => new { a.BalanceYear }).Distinct())
{
      this.YearList.Add(Convert.ToInt32(item.BalanceYear));
}
Last modified: January 23, 2021

Author

Comments

Write a Reply or Comment