What is the VB statement phrase "Chr(0)" equivalent in C#?

user225626 picture user225626 · Jun 13, 2012 · Viewed 14.3k times · Source

What is the VB statement expression Chr(0) equivalent in C#?

Thanks for any help.

Answer

Siddharth Rout picture Siddharth Rout · Jun 13, 2012

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";