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

How to use DbFunctions.TruncateTime

Microsoft Access Connectivity from C#

Tool 'dotnet-ef' failed to install. dotnet core