I want the value to come from a property on a Settings class that gets
passed around to a related group of objects. I would prefer the
Settings class to be strongly typed. It would seem to me like that's
a pretty common way of doing things, if I'm going about it the wrong
way by all means tell me, since I'm just pulling this stuff out of my
butt.
On a side note, I'm also running into this issue when the constructor
takes an Int32 and, I assume I will run into it with any non-reference
object.
Without digging into the code, it seems like the input of a parameter
is assumed to be either a reference type or a string and no attempt at
casting is done. I would be surprised if someone hasn't run into this
annoyance before and written a module to solve it so if any can point
me in the right direction it would be greatly appreciated.