Javier Ros <jros@NO$PAMHEREemuasa.es> wrote:
someone know if exists a function that convert a object from any type to
other type?
exaple:
ConvertFromTO(object obj, System.Type typeSrc, System.Type typeDst);
What would you expect it to do if presented with, say, Random and
XmlDocument? Or WebRequest and Int32? Most conversions just don't make
sense. If they make sense, they should be supported by one or other of
the types (possibly using IConvertible).
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too