using System;
using System.Collections.Generic;
public class Example
{
public static void Main()
{
List myList = new List();
myList.Add("A");
myList.Add("B");
myList.Add("C");
Console.WriteLine();
foreach (string d in myList)
{
Console.WriteLine(d);
}
myList.Reverse();
Console.WriteLine();
foreach (string d in myList)
{
Console.WriteLine(d);
}
myList.Reverse(1, 4);
Console.WriteLine();
foreach (string d in myList)
{
Console.WriteLine(d);
}
}
}