Cosmos/source/IL2CPU.Tests/Tests/Generics/SimpleList/SimpleList.cs
mterwoord_cp 6ca242b4f5 new test
2007-11-24 15:22:06 +00:00

20 lines
No EOL
327 B
C#

using System;
using System.Collections.Generic;
class test
{
static int Main()
{
List<int> xItems = new List<int>();
xItems.Add(1);
xItems.Add(2);
xItems.Add(3);
int aReturn = 6;
for(int i = 0; i < xItems.Count; i++)
{
aReturn -= xItems[i];
}
xItems.Clear();
return aReturn;
}
}