Hi
Thing is that I don't want to convert from one base type
to another base type.
I have object of type oject which i need to convert to
userdefined data types.
I hope this time I made my point more clear.
Regards
Makarand
[quoted text, click to view] >-----Original Message-----
>I find the best one to use is the Convert class. Its got
plenty of
>overloads for Converting practically any type into
another, and these are
>all static. example:
>string refNumber = "12312";
>int curRef = Convert.ToInt32(refNumber);
>
>see
>
http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/cpref/html/frlrfsystemconvertclasstopic.asp
[quoted text, click to view] >
>Janaka
>
>"Makarand" <anonymous@discussions.microsoft.com> wrote in
message
>news:06cb01c3a36a$ac6c5eb0$a601280a@phx.gbl...
>> Hi
>>
>> Can anybody tell me how to use TypeConvertor class?
>>
>> Thing is i want to do dynamic(during runtime) type
casting
>> in my code.
>>
>> Thnanx
>>
>> Makarand
>
>
>.
I find the best one to use is the Convert class. Its got plenty of
overloads for Converting practically any type into another, and these are
all static. example:
string refNumber = "12312";
int curRef = Convert.ToInt32(refNumber);
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemconvertclasstopic.asp
Janaka
[quoted text, click to view] "Makarand" <anonymous@discussions.microsoft.com> wrote in message
news:06cb01c3a36a$ac6c5eb0$a601280a@phx.gbl...
> Hi
>
> Can anybody tell me how to use TypeConvertor class?
>
> Thing is i want to do dynamic(during runtime) type casting
> in my code.
>
> Thnanx
>
> Makarand