Which one of the following is preferred in fetching data from sqldatareader. dr[i] or dr.GetX(i)

 Posted by deccansoft on 9/18/2010 | Category: C# Interview questions | Views: 710

GetX(i) is preferred because , we don't have to cast unlike dr[i] which returns an object and have to be casted.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response