How can I convert array into string object

T

to_rgoyal

Hi All,
I want to convert array into string. That is, I have one character
array with number of characters like :
arr[0]='0'
arr[1]='5'
arr[2]='/'
arr[3]='1'
arr[4]='2'
arr[5]='/'
arr[6]='2'
arr[7]='0'
arr[8]='0'
arr[9]='5'

Iwant to store these values into string object. So that it become :
String str="05/12/2005";

How can I do that? I tried with

string date=arr.ToString();

But it doesn't work. Please help me.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Easier than that, string s = new String ( arr );


cheers,
 

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

Top