static void Main(string[] args)
{
List<string> strList = new List<string>();
; i <= ; i++)
{
strList.Add("string "+i);
}
;
if (strList.Count < number)
{
number = strList.Count;
}
;
List<string> resultList = new List<string>();
; i <= number; i++)
{
int rang = strList.Count - i;
, rang);
//Console.WriteLine("ramg:" + rang + " strList[" + index + "]:" + strList[index]);
resultList.Add(strList[index]);
strList[index] = strList[rang];
count++;
}
Console.WriteLine("---------COUNT: " + count);
foreach (var result in resultList)
{
Console.WriteLine(result);
}
Console.ReadLine();
}