What is the VB statement expression Chr(0)
equivalent in C#?
Thanks for any help.
What is the VB statement expression Chr(0)
equivalent in C#?
Thanks for any help.
The equivalent I believe is '\0'
I deleted the comment as I thought it is more appropriate to update in the post :)
sValue = vValue + Chr(0) 'As mentioned in your comment
can be written as
sValue += "\0";
You can use (char)0
. Or '\0'
of course. If you want to call a method, you can use Convert.ToChar(0)
.
The equivalent would be (char)0 . If you are looking for escape sequences and other characters you can use \n and likewise