Hi Oldman
Have you looked at
Convert.ChangeType(object, Type)
According to MSDN
"Returns an Object with the specified Type and whose value is equivalent to
the specified object."
That should do the trick ;-)
HTH
Ged
>I am writing a method that kind of works like the default implmentation of
> the serializing logic when using the Serializable attribute.
[quoted text clipped - 9 lines]
>
> Thanks
Oldman - 31 Aug 2007 12:06 GMT
Thanks Ged! I will look into this. I didn't see that method on the Convert
object. I aslo found that the IConvertible interface supports a ToType
method.
I will report back if either of these solutions work.
> Hi Oldman
>
[quoted text clipped - 25 lines]
> >
> > Thanks