Get value from DataTable to string variable wihout using unboxing or conversion
Posted on 2007-10-01
How would i take the value from the datatable to an string variable without converting or using unboxing for example string strName = DataTable["Name"].ToString() if i use the string strName = DataTable["Name"]. It throws an error message and i want to rid from this conversion
I am having an table which having the lakhs of records for some business logic i have to loop throw this entire table and use the table values. This conversion from object to string hamper the performance so i want to skip this conversion is there any way so that i can escape from this conversion? I am using vs2005 with sqlserver2005.