IList: add, insert, and remove some items : IList « Data Structure « C# / CSharp Tutorial






using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;

public class MainClass
{

    public static void Main()
    {
        IList<double> myList = new List<double>();

        myList.Add(1.54);
        myList.Add(29.2234);
        myList.Insert(1, 39.99);
        myList.Add(48.2);
        myList.Remove(10.4);

    }
}








11.35.IList
11.35.1.IList: add, insert, and remove some items
11.35.2.IList: print some specific element indexes
11.35.3.IList: enumerate the list using Count and IList's indexer