StringExtensions.ToByteArray Method
From CSharp Extensions
A Sandcastle Documented Class Library
| StringExtensionsToByteArray Method |
Converts a string to a sequence of bytes.
Namespace: CSharpExtensions
Assembly: CSharpExtensions (in CSharpExtensions.dll) Version: 1.0.0.0 (1.0.0.0)
public static byte[] ToByteArray( this string input )
<ExtensionAttribute> Public Shared Function ToByteArray ( input As String ) As Byte()
public: [ExtensionAttribute] static array<unsigned char>^ ToByteArray( String^ input )
[<ExtensionAttribute>] static member ToByteArray : input : string -> byte[]
Parameters
- input
- Type: SystemString
String to be converted.
Return Value
Type: ByteA byte array.