Class StreamExtensions
Stream extensions
Inheritance
System.Object
StreamExtensions
Namespace: ISynergy.Framework.Core.Extensions
Assembly: ISynergy.Framework.Core.dll
Syntax
public static class StreamExtensions : object
Methods
View SourceToByteArray(Stream)
Convert stream to byte array.
Declaration
public static byte[] ToByteArray(this Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream |
Returns
| Type | Description |
|---|---|
| System.Byte[] |
ToByteArrayAsync(Stream)
Convert stream to byte array asynchronous.
Declaration
public static async Task<byte[]> ToByteArrayAsync(this Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream |
Returns
| Type | Description |
|---|---|
| Task<System.Byte[]> |