Java char literal to C# char literal

Posted by Kristoffersen on Stack Overflow See other posts from Stack Overflow or by Kristoffersen
Published on 2010-05-02T12:58:54Z Indexed on 2010/05/02 13:07 UTC
Read the original article Hit count: 492

Filed under:
|
|

Hi.

I am maintaining some Java code that I am currently converting to C#.

The Java code is doing this:

sendString(somedata + '\000');

And in C# I am trying to do the same:

sendString(somedata + '\000');

But on the '\000' VS2010 tells me that "Too many characters in character literal". How can I use '\000' in C#? I have tried to find out what the character is, but it seems to be " " or some kind of newline-character.

Do you know anything about the issue?

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about c#