By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,769 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,769 IT Pros & Developers. It's quick & easy.

Converting Object into String...

P: n/a
Hai,

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

Mar 29 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.