title: C# Class construction for String Method
body: <p>I have a class with a couple of methods.</p>
  
  <p>Here is my function mapping:</p>
  
  <pre><code>    public void Connect(string SourceFile, OleDbConnection Connection, OleDbCommand Command) { zConnect(SourceFile, Connection, Command); }
      public void Tablenames2cmb(OleDbConnection Connection, ComboBox TargetComboBox) { zTablenames2cmb(Connection, TargetComboBox); }
      public void Tablenames2cmb(OleDbConnection Connection, string Exclusion, ComboBox TargetComboBox) { zTablenames2cmb(Connection, Exclusion, TargetComboBox); }
      public string GetUser(OleDbConnection Connection, OleDbCommand Command, OleDbDataReader Reader, string username) { zGetUser(Connection, Command, Reader, username); }
  </code></pre>
  
  <p>The first 3 methods compile just fine. But the string methods gives me an error that there is no return.</p>
  
  <p>Method:</p>
  
  <pre><code>    private string zGetUser(OleDbConnection Connection, OleDbCommand Command, OleDbDataReader Reader, string username)
      {
          string result = "Foo";
          return result;
      }
  </code></pre>
  
  <p>I guess I made a stupid mistake with the function mapping, but I can't figure out what it is.</p>