Converting Object into String...

  • Thread starter Thread starter Wallace
  • Start date Start date
W

Wallace

Hai,

Can anyone tell how to convert an object into string?
Please help me.... urgent..
Thanx in advance...
 
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 ();
}
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top