>Hi Cetin,
>
>you're right .. it returns "System.Char[]"
>
>conceptually mistaken in my opinion .. a char[] array object that can't be easily converted into a string ... , the reverse is possible:
>
>someString.ToCharArray() ..., so why not the other way around ... ???!!!
>
>I don't program much in C# .. and my example was not tested ..
>I don't know it if works in Net 2.0
>
>Regards
>Christian
Yes I agree with you. I too expected it to be as simple as:
charArray.ToString("someformatspecifierhere")
or even easier:
string myString = (string)charArray;
using System.Text;
char[] ca = new char[] {'a','b','v'};
Encoding ascii = Encoding.ASCII;
string myStr = ascii.GetString( ascii.GetBytes( ca ));
Bothers me as well.
Cetin