John Skeet is right ...
Also you can achieve this thing below method ...
1st way
char vbNullChar = Convert.ToChar(0);
string sVersion = new string(vbNullChar, 255);
2nd way
char vbNullChar = Convert.ToChar(0x0);
string sVersion = new string(vbNullChar, 255);
source
share