Posted on: 10/30/2014 5:22:15 AM | Views : 381

Hi,
I want to convert char array to string but I am not getting proper string where '>' (greater than sign) comes in char array. My code is as following
char[] c = new char[15]; c[0] = 'O'; c[1] = 'n'; c[2] = 'l'; c[3] = 'y'; c[4] = '>'; c[5] = '<'; c[6] = 'T'; c[7] = 'h'; c[8] = 'e'; c[9] = 'L'; c[10] = 'o'; c[11] = 'n'; c[12] = 'e'; c[13] = 'l'; c[14] = 'y'; // B. 15 character string. string s = new string(c); Console.WriteLine(s); Output :
Only> Means when greater then sign comes it breaks. Can anyone say what is the solution.
Thank you ...

Go to the complete details ...