Convertor.AsBytes Method

TegoOS

ConvertorAsBytes Method
Converts String into Byte array

Namespace: Tego.Utils
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
public static byte[] AsBytes(
	this string str
)
<ExtensionAttribute>
Public Shared Function AsBytes ( 
	str As String
) As Byte()
public:
[ExtensionAttribute]
static array<unsigned char>^ AsBytes(
	String^ str
)
[<ExtensionAttribute>]
static member AsBytes : 
        str : string -> byte[] 

Parameters

str
Type: SystemString
Given string

Return Value

Type: Byte
byte array

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