M
Miha Markic
Hi,
Yes, accessing it by number is faster and less readible unless you use an
enumeration or a variable with descriptive name instead of numbers.
VB Programmer said:When referring to a field in a datareader which is better, to refer to it by
using a numeric index, or the name of the field? Of course, using the name
is more readable, but isn't it slower? What are the pros/cons?
Yes, accessing it by number is faster and less readible unless you use an
enumeration or a variable with descriptive name instead of numbers.