Get List of year By C#

        public List<string> GetYear()
        {
            List<string> oList = new List<string>();

            int year = 2013;
            for (int i = 0; i < 20; i++)
            {
                oList.Add(year.ToString());
                year++;
            }

            return oList;
        }

Comments

Popular posts from this blog

Easy Ui Jquery easyui-textbox change onChange event

Provision AWS EC2 Instance and RDS with Terraform, and Deploy Spring Boot App to EC2 Instance via GitHub Action Pipeline

npm install gets stuck at fetchMetadata