title: Sending Across The Value Of Array List To Another Function Belonging To A Different Class
body: <pre><code>class Calculate
  {
       public void extract(// code to get the values of  array list)
       {
              if ( numbers &lt; 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;
     }
  }
  </code></pre>
  
  <p>I want to send the array list values to the parameter of the extract function.
  After subtracting that one element i want that too be reflected in my numbers array </p>