AsExtensions.AsBytes Method (String, Encoding)
From Tungsten Suite
Tungsten
|
|
AsExtensionsAsBytes Method (String, Encoding) |
Converts a string to an encoded byte array
Namespace: W
Assembly: Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
C#
public static byte[] AsBytes( this string this, Encoding encoding )
Parameters
- this
- Type: SystemString
The string to convert to an encoded byte array - encoding
- Type: System.TextEncoding
The encoding to use
Return Value
Type: ByteA byte array encoding of the specified string