An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
This will work, no need to create an Add method and if so you are hiding the base Add method.
using System;
using System.Collections.Generic;
namespace ForumQuestion
{
partial class Program
{
private static readonly GenericList<int> _list = new();
static void Main(string[] args)
{
for (int index = 0; index < 5; index++)
{
_list.Add(index);
}
Console.WriteLine(string.Join(",", _list));
Console.ReadLine();
}
}
public class GenericList<T> : List<T> { }
}