mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 17:08:00 +02:00
44 lines
586 B
Beef
44 lines
586 B
Beef
![]() |
using System.Collections.Generic;
|
||
|
using System;
|
||
|
|
||
|
namespace Test
|
||
|
{
|
||
|
class Container
|
||
|
{
|
||
|
static void TestB()
|
||
|
{
|
||
|
List<int> list = scope .();
|
||
|
for (int i < 5)
|
||
|
list.Add(i);
|
||
|
|
||
|
//TestB
|
||
|
list.Remove(2);
|
||
|
}
|
||
|
|
||
|
static void TestA()
|
||
|
{
|
||
|
List<String> list = scope .();
|
||
|
list.Add("A");
|
||
|
list.Add("AB");
|
||
|
list.Add("ABC");
|
||
|
list.Add("ABCD");
|
||
|
list.Add("ABCDE");
|
||
|
list.Add("ABCDEF");
|
||
|
|
||
|
for (int i < 100)
|
||
|
{
|
||
|
list.Add(scope:: String()..AppendF("Str{}", i));
|
||
|
}
|
||
|
|
||
|
//TestA
|
||
|
list.RemoveAt(3);
|
||
|
TestB();
|
||
|
}
|
||
|
|
||
|
public static void Test()
|
||
|
{
|
||
|
TestA();
|
||
|
}
|
||
|
}
|
||
|
}
|