title: The name 'functionname' does not exist in the current context
body: <p>When trying to compile my c# windows app I am getting the following error:</p>
  
  <pre><code>The name 'GetActiveLB' does not exist in the current context
  </code></pre>
  
  <p>Here's the code that calls that function:</p>
  
  <pre><code>using F5LTMMaintenance;
  
  ......
  
      private void btnLBSetA_Click(object sender, EventArgs e)
      {
  
          List&lt;string&gt; range = GetActiveLB();
          foreach (string item in range)
          {
              // Do something with item
          }
      }
  </code></pre>
  
  <p>Then I have a class with the following:</p>
  
  <pre><code>namespace F5LTMMaintenance
  {
      public class F5LTM&lt;T&gt;
      {
          public List&lt;T&gt; GetActiveLB()
          {
              var client = new RestClient("mylb.domain.local");
              var request = new RestRequest("mgmt/tm/cm/failover-status", Method.GET);
              var queryResult = client.Execute&lt;List&lt;T&gt;&gt;(request).Data;
              return queryResult == null ? new List&lt;T&gt;() : queryResult;
          }
      }
  }
  </code></pre>
  
  <p>The GetActiveLB function does exist, its a public function so why am I getting this error? Any help would be appreciated. </p>