470,619 Members | 1,587 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

Converting Object into String...

Hai,

Can anyone tell how to convert an object into string?
Please help me.... urgent..
Thanx in advance...

Mar 29 '06 #1
3 28333
use the ToString() function or Convert.ToString().

Regards
Neil

"Wallace" <pr****************@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hai,

Can anyone tell how to convert an object into string?
Please help me.... urgent..
Thanx in advance...

Mar 29 '06 #2
It might help if you explain what you are trying to convert from?

If it helps, you can override ToString yourself:
public override string ToString()
{
return base.ToString ();
}

Mar 29 '06 #3
Wallace,

What do you mean converting an object to string?
It could be a some descriptive string (ToString() is meant to be used for
that), it could be a string from which you can recreate the object
afterwards some kind of serialization - XML, Base64 encoded binary
serialization, etc

What is your idea of converting to string?
--
HTH
Stoitcho Goutsev (100)

"Wallace" <pr****************@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hai,

Can anyone tell how to convert an object into string?
Please help me.... urgent..
Thanx in advance...

Mar 29 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ajay | last post: by
5 posts views Thread by amitbadgi | last post: by
3 posts views Thread by Parvesh | last post: by
5 posts views Thread by Testguy | last post: by
4 posts views Thread by gg9h0st | last post: by
1 post views Thread by Kevin S Gallagher | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.