HI ! I am expirienced C++ programmer , but new to C#
1. What is the difference between string and String ? when is each one used ?
2. I tried to use "ToCharArra y" , because I need the text in simple characters array.
But when tried to print it :
It printed on the meesage box :
worked fine
3. I dont know what is wrong . ?
4. Is c# characters array is like C character array or not ?
Thanks
1. What is the difference between string and String ? when is each one used ?
2. I tried to use "ToCharArra y" , because I need the text in simple characters array.
Code:
private System.Windows.Forms.TextBox UserName ; char [] name1; name1 = new char [64]; name1 = this.UserName.Text.ToCharArray();
Code:
MessageBox.Show( name1.ToString ());
"System.cha r [] "
, which is not the text that is there. Code:
MessageBox.Show( this.UserName.Text );
3. I dont know what is wrong . ?
4. Is c# characters array is like C character array or not ?
Thanks
Comment