AsExtensions Class

Tungsten Suite

AsExtensions Class

Extensions which convert objects of one type to another
Inheritance Hierarchy
SystemObject  WAsExtensions

Namespace:  W
Assembly:  Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
Syntax
C#
public static class AsExtensions

The AsExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleAsTType
Use Generic syntax for the as operator.
Public methodStatic memberAsBase64(Byte)
Converts a byte array to a Base64 encoded string
Public methodStatic memberAsBase64(String)
Converts a string to Base64 encoding
Public methodStatic memberAsBase64(String, Encoding)
Converts a string to Base64 encoding
Public methodStatic memberAsBytes(String)
Converts a string to an encoded byte array
Public methodStatic memberAsBytes(String, Encoding)
Converts a string to an encoded byte array
Public methodStatic memberAsCompressed
Compresses the byte array using System.IO.Compression.DeflateStream
Public methodStatic memberAsStream(Byte)
Creates a MemoryStream object and initializes it with the specified byte array
Public methodStatic memberAsStream(String)
Creates a MemoryStream object and initializes it with the specified string
Public methodStatic memberAsString(Byte)
Converts an encoded byte array to a string
Public methodStatic memberAsString(Byte, Encoding)
Converts an encoded byte array to a string
Public methodStatic memberAsString(Byte, Int32, Int32)
Converts an encoded byte array to a string
Public methodStatic memberAsString(Byte, Int32, Int32, Encoding)
Converts an encoded byte array to a string
Top
See Also

Reference