Re: Switch on OleDbType? by Tomas
Tomas
Fri Sep 02 10:54:18 CDT 2005
Hi there,
once I have solved this by evaluating yourobject.GetType().ToString(), which
returns something like "System.OleDbString" or whatever... Since this is a
string, you can use switch.
Regards
Tomas
"xenophon" <xenophon@online.nospam> píse v diskusním príspevku
news:mjsgh1dd3ise4i9np3vgc5k4lrjp7dkmjv@4ax.com...
>
> I am built a massive set of if/else if statement to examine different
> OleDbType types. I would like to make this into a switch, but that
> only seems to work on Int and String. What is a better way to do this?
>
> Thanks.
>