class Calculate
{
public void extract(// code to get the values of array list)
{
if ( numbers < Greatest)
{
list.remove(0);
}
}
}
class MainClass
{
public static void Main()
{
int[] numbers = new int[] {1, 2, 3, 4, 5 }// modifying the value;
numbers = list.ToArray(typeof(int)) as int
ArrayList list = new ArrayList(numbers);
int Greatest = 6;
}
}
我想将数组列表值发送到提取函数的参数。减去一个元素后,我希望它也反映在我的数字数组中