Syntax Error in Calling a method from another class : <p>How may I call a method in another class from another class in a separate file.  The files are in the same directory.  I tried calling this SMAMethod method</p>

<pre><code>namespace myBackEnd
{
    public class SMA
    {
        public static Models.DateClose SMAMethod (Queue&lt;Models.DateClose&gt; 
        queue, int period)
        {
            decimal average, sum=0;
            Models.DateClose dateClose = null;
            for (int i = 0; i &lt; period; i++)
            {
                dateClose = queue.Dequeue();
                if (dateClose != null)
                    sum += dateClose.Close;
            }
            average = sum/period;
            dateClose.Close = average;

            return dateClose;

        }
    }
}
</code></pre>

<p>When I call the SMAMethod in I get the red squiggly line with the hover over text " SMAMethod does not exists in the current context"</p>

<pre><code>SMAMethod(movingAverageQueue, 10);
</code></pre>
