M
mavrick_101
Hi,
I recently wrote some code and used column names to access values in the
datareader, like ....
string _firstName = myDr["FirstName"].ToString();
My supervisor instructed me to use index instead, like...
string _firstName = myDr.getString(0);
I wouldn't mind using index but whats the big deal? I can't understand why
is one better than the other?
Please help...
I recently wrote some code and used column names to access values in the
datareader, like ....
string _firstName = myDr["FirstName"].ToString();
My supervisor instructed me to use index instead, like...
string _firstName = myDr.getString(0);
I wouldn't mind using index but whats the big deal? I can't understand why
is one better than the other?
Please help...