Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: byte[] ToUtf16(this string)

Declaration

public static byte[] ToUtf16(
    this string input
)

Summary

Converts the specified string to UTF-16.

Parameters

this stringinput String to convert to UTF-16.

Returns

The specified string, converted to a byte-array containing the UTF-16 encoding of the string.