using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyGenericList
{
public class MyGenericList where T : IComparable
{
const int defaultCapacity = 6;
private T[] list = null;
public MyGenericList(int capacity = defaultCapacity)
{
...