AsExtensions.AsBytes Method (String)

Tungsten Suite

AsExtensionsAsBytes Method (String)

Converts a string to an encoded byte array

Namespace:  W
Assembly:  Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
Syntax
C#
public static byte[] AsBytes(
	this string this
)

Parameters

this
Type: SystemString
The string to convert to an encoded byte array

Return Value

Type: Byte
A byte array encoding of the specified string

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also