Calling a function from within another function?
<p>I want to use a function from another class within a new function which I will call from main.  I am trying to do this as below, but get an error: </p>

<blockquote>
  <p>Error The name 'Class1' does not exist in the current context.</p>
</blockquote>

<p>Actually, in my code I use different names, but its just to illustrate the structure and to make it easier to read for you.</p>

<pre><code>public class Class1
{      
    public static int[] Function1()
    {
       // code to return value
    }
}


public class Class2
{ 
      public static int Function2()
      {
         int[] Variable = Class1.Function1();
         //other code using function1 value
      }
}
</code></pre>
