From byte array to string var mystring = Encoding.Unicode. GetString(myarray) From string to byte var myarray2 = Encoding.Unicode. GetBytes(mystring).
From byte array to string var mystring = Encoding.Unicode. GetString(myarray); From string to byte var myarray2 = Encoding.Unicode. GetBytes(mystring).
– Hooch Feb 20 at 10:54 @Hooch Added what you asked. – xanatos Feb 20 at 11:07.
System.Text.Encoding.Unicode. GetString takes a byte array and returns a string. Edit: Judging from your screenshot, you don't have a byte but a char array.In this case, you should first try just creating a string from it: var result = new String(WinMineStruct.
PlayerEasyName); if that does not work, you can always try this: var bytes = System.Text.UnicodeEncoding. GetBytes(WinMineStruct. PlayerEasyName); var result = System.Text.UnicodeEncoding.
GetString(bytes); Also, there are embedded Null-Characters. I can't test if they have to be stripped out right now.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.