title: Pass a single data column to a method
body: <p>I want to pass a single data row column to a method that does some validation like so:</p>
  
  <pre><code>SomeMethod(myDataRow["Col_Name"])
  </code></pre>
  
  <p>I want to do some checking and return a value.  Can't figure out how to pass just that column value for that data row.  I could pass the entire datarow, but I wanted to avoid that.  </p>
  
  <p>The idea is to pass the column reference and possibly a type description, sort of like:</p>
  
  <pre><code>SomeMethod(dataRowColRef, "ThisColShouldBeAnInt");
  </code></pre>
  
  <p>The some method would validate the value based on whether it's an int, string, whatever and return a "good" value that will make the rest of the program happy.</p>
  
  <p>Thoughts?</p>