ByteExtensionsToString(IEnumerableByte, Encoding) Method
Converts a byte sequence to its String representation using the specified character Encoding.
Namespace: DevCase.Extensions.ByteExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static string ToString(
this IEnumerable<byte> sender,
Encoding enc
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function ToString (
sender As IEnumerable(Of Byte),
enc As Encoding
) As String
Dim sender As IEnumerable(Of Byte)
Dim enc As Encoding
Dim returnValue As String
returnValue = sender.ToString(enc)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static String^ ToString(
IEnumerable<unsigned char>^ sender,
Encoding^ enc
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member ToString :
sender : IEnumerable<byte> *
enc : Encoding -> string
No code example is currently available or this language may not be supported.
- sender IEnumerableByte
-
The source Array.
- enc Encoding
-
The character Encoding to decode the bytes.
String
The String representation.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableByte. 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).
This is a code example.
No code example is currently available or this language may not be supported.
MessageBox.Show(New Byte() {84, 101, 115, 116}.ToString(Encoding.Default))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.