title: Cannot convert from 'method group' to 'string'
body: <p>hi guys i got problem on both of my <code>userID.GetUserByID</code> and <code>getIP.GetIPAddress</code>
  it tells me that i Cannot convert from 'method group' to 'string'  </p>
  
  <p>but if i don't add even one of them i don't get an error but i add either one of the that error pops up. down below is my code on form, dal and for my ip</p>
  
  <pre><code>sBarcodeValidation = new ValidateBarCode3Repository().ValidateBarCode3(
            sBarCode, 
            userID.getUserByID,
            getIP.GetIPAddress,
            modGlobal.gBoothID = Settings.Default.BoothID);
  </code></pre>
  
  <p>here is my code for <code>getUserByID</code></p>
  
  <pre><code>public class GetUserByID
  {
      CACHE CacheConnection = new CACHE();
      public string getUserByID(GetAllUsers getUserByID) 
      {
          try
          {
              CacheConnection.ClearParameters();
              CacheConnection.AddParameter(getUserByID.ID);
              return CacheConnection.ExecuteQuery("AGSP.Users", "GetUserByID", CommandType.StoredProcedure, InterSystems.Data.CacheTypes.ClientTypeId.tString);
          }
          catch (Exception ex)
          {
              throw ex;
          }
      }
  }
  </code></pre>
  
  <p>and here's my code for getting my ipaddress</p>
  
  <pre><code>public class GetIp
  {
      //public void getHostName()
      //{
      //    string hostName = Dns.GetHostName(); // Retrive the Name of HOST  
      //    // Get the IP  
      //    string myIP = Dns.GetHostEntry(hostName).AddressList[1].ToString();
      //}
      public static IPAddress GetIPAddress()
      {
          IPAddress ip = Dns.GetHostAddresses(Dns.GetHostName()).Where(address =&gt;
          address.AddressFamily == AddressFamily.InterNetwork).First();
          return ip;
      }
  }
  </code></pre>