title: Trying to call a class from program.cs
body: <p>I created a class to quicksort an array of ints and now im trying to call that class from the program but i keep getting an error, the class is as follows :</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace QuicksortSimpel
  {
      class Class1
      {
          public static void Quicksort(IComparable[] elements,int left, int right)
          {
  
              //Define i and j and pick an pivot to compare other numbers
              int i = left, j = right;
              IComparable pivot = elements[left + (left + right) / 2];
  
              //Compare numbers and then compare to pivot
              while (i &lt;= j)
              {
                  while (elements[i].CompareTo(pivot) &lt; 0)
                  {
                      i++;
                  }
  
                  while (elements[j].CompareTo(pivot) &gt; 0)
                  {
                      j--;
                  }
  
                  if (i &lt;= j)
                  {
                      // Switch
                      IComparable tmp = elements[i];
                      elements[i] = elements[j];
                      elements[j] = tmp;
  
                      i++;
                      j--;
                  }
              }
              // repeat
              if (left &lt; j)
              {
                  Quicksort(elements, left, j);
              }
  
              if (i &lt; right)
              {
                  Quicksort(elements, i, right);
              }
          }
      }
  }
  </code></pre>
  
  <p>I try calling it like this :</p>
  
  <pre><code>numbers = Class1.Quicksort(numbers);
  </code></pre>
  
  <p>The error that i am getting is this :</p>
  
  <p>No overload for method quicksort takes 1 arguments.</p>