How do I cast a parameter passed into a function at runtime?
private object PopulateObject(object dataObj, System.Data.DataRow dataRow, string query)
{
object = DataAccess.Retriever.RetrieveArray<dataObj.GetType()>(query);
i'd like to know how to get dataObj.GetType() inside the type declaration at runtime.