hi
can anyone tell me how string ends in C# does it have a null in the end or any other way and if there is null character at the end of string then which function or how to get the index of that null?

Recommended Answers

All 2 Replies

There is no null character at the end of a C# string.

String class has a Length property.
See this site to find out more what you can do with C# strings.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.