AsExtensions Class
From Tungsten Suite
Tungsten
|
|
AsExtensions Class |
Extensions which convert objects of one type to another
Namespace: W
Assembly: Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
C#
public static class AsExtensions
The AsExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| AsTType |
Use Generic syntax for the as operator.
| |
| AsBase64(Byte) |
Converts a byte array to a Base64 encoded string
| |
| AsBase64(String) |
Converts a string to Base64 encoding
| |
| AsBase64(String, Encoding) |
Converts a string to Base64 encoding
| |
| AsBytes(String) |
Converts a string to an encoded byte array
| |
| AsBytes(String, Encoding) |
Converts a string to an encoded byte array
| |
| AsCompressed |
Compresses the byte array using System.IO.Compression.DeflateStream
| |
| AsStream(Byte) |
Creates a MemoryStream object and initializes it with the specified byte array
| |
| AsStream(String) |
Creates a MemoryStream object and initializes it with the specified string
| |
| AsString(Byte) |
Converts an encoded byte array to a string
| |
| AsString(Byte, Encoding) |
Converts an encoded byte array to a string
| |
| AsString(Byte, Int32, Int32) |
Converts an encoded byte array to a string
| |
| AsString(Byte, Int32, Int32, Encoding) |
Converts an encoded byte array to a string
|