Tungsten
AsExtensionsAsString Method (Byte, Int32, Int32, Encoding) |
Converts an encoded byte array to a string
Namespace: W
Assembly: Tungsten.As (in Tungsten.As.dll) Version: 2.0.1
Syntax
C#
public static string AsString( this byte[] this, int index, int count, Encoding encoding )
Parameters
- this
- Type: SystemByte
The encoded byte array to conver to a string - index
- Type: SystemInt32
The starting index - count
- Type: SystemInt32
The number of bytes to convert - encoding
- Type: System.TextEncoding
The encoding to use
Return Value
Type: StringThe string representation of the encoded byte array
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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