PROPERTY
String.Length
Counts UTF-16 code units, including both halves of a surrogate pair.
Formal Syntax & Structure
csharp syntaxcsharp
text.LengthWorking Example
Example Snippetcsharp
int units = "\U0001F600".Length;Counts UTF-16 code units, including both halves of a surrogate pair.
text.Lengthint units = "\U0001F600".Length;