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

 Posted by deccansoft on 8/5/2010 | Category: C# Interview questions | Views: 1027

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