user7388546
user7388546

Reputation: 5

c# Unicode Null Representation code character array

I am creating a character array.Is there a unicode code for null? For example if I need to put a null in the character array?And also when I use the unicode table https://unicode-table.com/en/#myanmar which is the code I should use since there is HTML-code,Unicode number... I'm confused.

char[] specialSymb= new char[] { ' ', ',', '.','?','!'}; 

Upvotes: 0

Views: 154

Answers (1)

Kevin Jensen Petersen
Kevin Jensen Petersen

Reputation: 513

According to Microsoft's documentation on Character literals (Which is what you are asking for) these are the following types of null encoding:

Escape sequence

\0

Unicode encoding

0x0000

EDIT:

For HTML Unicodes

%00

or

�

Source: https://msdn.microsoft.com/en-us/library/aa691087(v=vs.71).aspx

Upvotes: 1

Related Questions