Quote:
quote:Originally posted by planoie
Quote:
|
quote:Originally posted by weicco
|
Quote:
|
It is possible with reflection:
|
Yes, my bad. However, I highly doubt this type of solution is what reflection is intended for. That's hitting the proverbial nail with a sledgehammer.
-Peter
|
Well a lot of (bad) ORMs work with reflection but not with fields but properties. Its a ugly thing (reflection) but can save you form writing some hundred lines of code.
And that string[SIZE] thingy. I'm old C coder and it would be absolute horror for me if indexing would start from 1 all the sudden.
In C family languages indexing starts from zero! :)
I do some
VB.NET projects from time to time and every fricking time when I access array using index I forget that in
VB indices start from 1. It drives me nuts! IndexOutOfBounds has become very familiar exception to me :(