Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int Utf16Length(this string)

Declaration

public static int Utf16Length(
    this string input
)

Summary

Determines the length of the UTF-16 encoding of the specified string.

Parameters

this stringinput String to determined UTF-16 length of.

Returns

The length of the string in bytes when encoded as UTF-16.