title: confused by C# type conversion
body: <p>I'm new to C# but familiar with vb.net</p>
  
  <p>my setVendor functions expects an int and a string</p>
  
  <p>why does this work</p>
  
  <pre><code>shopify.setVendor(System.Convert.ToInt32(reader["ProductID"]), System.Convert.ToString(reader["Vendor"]));
  </code></pre>
  
  <p>but this fails for both parameters:</p>
  
  <pre><code>shopify.setVendor(int.Parse(reader["ProductID"]), reader["Vendor"].ToString);
  </code></pre>
  
  <p>very confused. It wants a string and I give it a string but it doesn't accept it . . . error converting string to int</p>