What are the advantages of replacing (int)reader[0] with reader.GetInt32(0)? I’m sure such casting functions are there for a reason, but other than it feeling more aesthetically pleasing to avoid the cast myself, I’m not sure what those reasons are.
What are the advantages of replacing (int)reader[0] with reader.GetInt32(0) ? I’m sure such casting
Share
In code….
In IL
So, the IL is different, but I doubt that there is any noticeable difference between them. Maybe after a million iterations you will see the difference, but not likely.