Improve efficiency of database row reading without boxing
问题 I use a boxing approach to read data from database via a type-switch helper class described here. The boxing approach is mainly used for custom types that I derive from/to default types (e.g. I have a DB_Image element stored as an int32 value, which correspongs to the index in a image list). I discovered how bad this approach was in terms of performance. The question is, can I do better? Examples welcome. 回答1: Ok, so I just went to write a little test program about different approaches to